/* ==========================================================================
   PÁGINAS DE RECURSOS (/ai/, /docs/)
   Complemento de main.css: reutiliza sus tokens y .resource-card.
   Sustituye al CDN de Tailwind que cargaban estas páginas.
   ========================================================================== */

.page-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: var(--tap-target);
  font-family: var(--font-mono);
  font-size: 0.775rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.page-back:hover {
  color: var(--accent-emerald-text);
}

.page-header {
  margin-bottom: 2rem;
}

.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background-color: rgba(6, 182, 212, 0.12);
  color: var(--accent-cyan-text);
  border: 1px solid rgba(6, 182, 212, 0.3);
  margin-bottom: 0.75rem;
}

.page-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-primary);
}

.page-lede {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-top: 0.6rem;
  max-width: 56ch;
}

/* Lista de recursos: reutiliza .resource-card de main.css */
.resource-list {
  display: grid;
  gap: 0.75rem;
  align-items: stretch;
}

.resource-list .resource-card {
  align-items: flex-start;
}

.resource-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.resource-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  white-space: nowrap;
}

/* Bloque de recomendación con afiliación, al final de /ai/ */
.promo-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.75rem;
  padding: 1.5rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color-hover);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.promo-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-emerald-text);
}

.promo-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 0.35rem;
  line-height: 1.25;
}

.promo-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 0.35rem;
}

.page-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding: 2rem 1.25rem;
  text-align: center;
}

.page-footer p {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 2;
}

.page-footer a {
  color: var(--accent-emerald-text);
}

.page-footer a:hover {
  text-decoration: underline;
}

@media (min-width: 640px) {
  .page-title {
    font-size: 2rem;
  }

  .promo-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .promo-card .btn-affiliate {
    width: auto;
    flex-shrink: 0;
  }
}

/* ==========================================================================
   PÁGINAS LEGALES (privacy.html, terms.html)
   ========================================================================== */
.legal-body {
  max-width: 68ch;
}

.legal-body h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 2rem;
  line-height: 1.3;
}

.legal-body p,
.legal-body li {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 0.75rem;
}

.legal-body ul {
  padding-left: 1.25rem;
  margin-top: 0.25rem;
}

.legal-body li::marker {
  color: var(--accent-emerald-text);
}

.legal-body a {
  color: var(--accent-emerald-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-body strong {
  color: var(--text-primary);
}

.legal-updated {
  font-family: var(--font-mono);
  font-size: 0.775rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}
