/* Guía pública de integración del widget (/widget-guide) */

:root {
  --wg-bg: #fafaf9;
  --wg-ink: #1c1917;
  --wg-muted: #57534e;
  --wg-accent: #0d9488;
  --wg-accent-2: #6366f1;
  --wg-card: #ffffff;
  --wg-border: rgba(28, 25, 23, 0.08);
  --wg-code-bg: #1e293b;
  --wg-radius: 16px;
  --wg-font: "Plus Jakarta Sans", system-ui, sans-serif;
  --wg-serif: "DM Serif Display", Georgia, serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--wg-font);
  color: var(--wg-ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(20, 184, 166, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(99, 102, 241, 0.1), transparent 50%),
    var(--wg-bg);
  line-height: 1.6;
}

.wg-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.5rem) 1.25rem 4rem;
}

.wg-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.wg-top a {
  color: var(--wg-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.wg-top a:hover { color: var(--wg-accent); }

.wg-hero {
  text-align: center;
  margin-bottom: 2rem;
}

.wg-hero h1 {
  font-family: var(--wg-serif);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

.wg-hero p {
  margin: 0 auto;
  max-width: 34rem;
  color: var(--wg-muted);
  font-size: 1.05rem;
}

.wg-card {
  background: var(--wg-card);
  border: 1px solid var(--wg-border);
  border-radius: var(--wg-radius);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  margin-bottom: 1.25rem;
  box-shadow: 0 12px 40px rgba(28, 25, 23, 0.06);
}

.wg-card--hero {
  border-color: rgba(13, 148, 136, 0.25);
  background: linear-gradient(145deg, #fff 0%, #f0fdfa 100%);
}

.wg-step-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wg-accent);
  margin-bottom: 0.5rem;
}

.wg-card h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.wg-card p {
  margin: 0 0 0.75rem;
  color: var(--wg-muted);
}

.wg-card p:last-child { margin-bottom: 0; }

.wg-snippet-wrap {
  position: relative;
  margin: 1rem 0 0.5rem;
}

pre.wg-snippet {
  margin: 0;
  padding: 1.15rem 1.25rem;
  background: var(--wg-code-bg);
  color: #e2e8f0;
  border-radius: 12px;
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.55;
  tab-size: 2;
}

.wg-copy-btn {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
}

.wg-copy-btn:hover { background: rgba(255, 255, 255, 0.2); }

.wg-hint {
  font-size: 0.88rem;
  color: var(--wg-muted);
}

code {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.88em;
  background: rgba(13, 148, 136, 0.1);
  color: #0f766e;
  padding: 0.12em 0.4em;
  border-radius: 4px;
}

.wg-checklist {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
}

.wg-checklist li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.45rem;
  color: var(--wg-muted);
  font-size: 0.95rem;
}

.wg-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--wg-accent);
  font-weight: 700;
}

.wg-channels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.wg-channel {
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--wg-border);
  background: #fafafa;
}

.wg-channel strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.wg-channel span {
  font-size: 0.85rem;
  color: var(--wg-muted);
}

details.wg-more {
  border: 1px solid var(--wg-border);
  border-radius: var(--wg-radius);
  background: var(--wg-card);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

details.wg-more summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: 700;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

details.wg-more summary::-webkit-details-marker { display: none; }

details.wg-more summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--wg-muted);
  font-weight: 400;
}

details.wg-more[open] summary::after { content: "−"; }

details.wg-more .wg-more-body {
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--wg-border);
}

details.wg-more pre {
  margin: 0.75rem 0 0;
  padding: 1rem;
  background: var(--wg-code-bg);
  color: #e2e8f0;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.5;
}

.wg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin-top: 0.75rem;
}

.wg-table th,
.wg-table td {
  padding: 0.6rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid var(--wg-border);
}

.wg-table th {
  color: var(--wg-muted);
  font-weight: 600;
}

.wg-foot {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--wg-muted);
}

@media (max-width: 540px) {
  .wg-copy-btn { position: static; display: block; margin-top: 0.5rem; width: 100%; }
}
