/* SEO: teoría en HTML, formulario y vista previa en una retícula adaptable. */
.seo-stages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 0;
  list-style: none;
  counter-reset: stage;
}
.seo-stages li {
  counter-increment: stage;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft);
}
.seo-stages li::before {
  content: "0" counter(stage);
  display: block;
  font:
    700 2rem "Space Grotesk",
    sans-serif;
  color: var(--blue);
  margin-bottom: 16px;
}
.seo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 24px 0;
}
.seo-grid > article,
.seo-grid > form {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.seo-grid h3 {
  margin-top: 0;
}
.seo-lab label {
  display: block;
  font-weight: 800;
  margin-bottom: 8px;
}
.seo-lab input,
.seo-lab textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  margin-bottom: 16px;
  border: 1px solid #aab6ca;
  border-radius: 12px;
  font: inherit;
}
.seo-lab textarea {
  resize: vertical;
}
.seo-lab [aria-invalid="true"] {
  border-color: #b02030;
}
.seo-lab button {
  cursor: pointer;
}
#seo-url-help {
  font-size: 0.875rem;
}
.seo-preview {
  padding: 24px;
  border-radius: 12px;
  background: var(--soft);
  overflow-wrap: anywhere;
}
.seo-preview .seo-site {
  font-weight: 800;
  margin: 0;
}
#seo-preview-url {
  font-size: 0.875rem;
  margin: 0 0 16px;
}
#seo-preview-heading {
  font-size: 1.375rem;
  line-height: 1.4;
  font-weight: 600;
  color: #203aaf;
  margin: 0 0 8px;
}
#seo-preview-description {
  margin-bottom: 0;
}
#seo-feedback {
  font-size: 0.875rem;
  margin-top: 16px;
  font-weight: 700;
}
.seo-code {
  overflow: auto;
  padding: 24px;
  border-radius: 12px;
  background: #162033;
  color: #ecf0ff;
  font-size: 0.875rem;
  line-height: 1.8;
}
.seo-code code {
  padding: 0;
  background: transparent;
  color: inherit;
}
.seo-steps {
  padding-left: 24px;
}
.seo-steps li {
  padding-left: 8px;
  margin-bottom: 16px;
}
.seo-checklist {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.seo-checklist legend {
  font-weight: 800;
}
.seo-checklist label {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 12px 0;
  cursor: pointer;
}
.seo-checklist input {
  width: auto;
  flex: 0 0 auto;
}
@media (max-width: 800px) {
  .seo-stages,
  .seo-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .seo-grid > article,
  .seo-grid > form,
  .seo-code,
  .seo-checklist {
    padding: 16px;
  }
}
