/**
 * EDITORIAL SHORTCODES — cta, faq, banner, cards, toc
 * Estilos movidos desde ia-content-kit (iack-editorial-inline).
 * El tema controla el diseño.
 */

.iack-cta,
.ia-block-cta {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid #dbe3ed;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
}
.iack-cta.is-secondary,
.ia-cta-secondary {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}
.iack-cta.is-warn,
.ia-cta-warn {
  background: linear-gradient(180deg, #fffaf1 0%, #fff1df 100%);
  border-color: #fed7aa;
}
.iack-cta-title,
.ia-cta-title {
  font-weight: 800;
  font-size: 1.06rem;
  line-height: 1.25;
  color: #0f172a;
}
.iack-cta-text,
.ia-cta-text {
  margin-top: 6px;
  color: #334155;
}
.iack-cta-btn,
.ia-cta-btn {
  margin-top: 10px;
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  color: #fff;
  background: #2563eb;
  border: 1px solid #2563eb;
  border-radius: 10px;
  padding: 8px 12px;
}
.iack-cta.is-secondary .iack-cta-btn,
.ia-cta-secondary .ia-cta-btn {
  background: #334155;
  border-color: #334155;
}
.iack-cta.is-warn .iack-cta-btn,
.ia-cta-warn .ia-cta-btn {
  background: #b45309;
  border-color: #b45309;
}

.iack-faq,
.ia-block-faq {
  margin: 12px 0;
  border: 1px solid #dbe3ed;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.iack-faq > summary,
.ia-block-faq > summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 34px 12px 14px;
  font-weight: 700;
  color: #0f172a;
  background: #f8fafc;
  position: relative;
}
.iack-faq > summary::after,
.ia-block-faq > summary::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #334155;
  border-bottom: 2px solid #334155;
  transform: translateY(-60%) rotate(45deg);
  transition: transform 0.15s ease;
}
.iack-faq[open] > summary::after,
.ia-block-faq[open] > summary::after {
  transform: translateY(-40%) rotate(-135deg);
}
.iack-faq > summary::-webkit-details-marker,
.ia-block-faq > summary::-webkit-details-marker {
  display: none;
}
.iack-faq-answer,
.ia-faq-answer {
  padding: 12px 14px;
  color: #334155;
}
.iack-faq-answer p,
.ia-faq-answer p {
  margin: 0;
}

.ia-block-cards {
  margin: 14px 0;
}
.ia-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.ia-card {
  border: 1px solid #dbe3ed;
  border-radius: 10px;
  background: #f8fafc;
  padding: 12px;
}
.ia-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  line-height: 1.3;
}
.ia-card p {
  margin: 0;
  color: #334155;
}

.ia-block-banner {
  margin: 14px 0;
  padding: 10px 12px;
  border: 1px dashed #94a3b8;
  border-radius: 10px;
  background: #f8fafc;
}
.ia-block-banner p {
  margin: 0.2rem 0;
}

.ia-block-toc,
.iack-toc-box {
  margin: 14px 0;
  padding: 12px;
  border: 1px solid #dbe3ed;
  border-radius: 10px;
  background: #f8fafc;
}
.iack-toc-title {
  display: block;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: #0f172a;
  margin: 0 0 8px 0;
  text-transform: uppercase;
}
.iack-toc {
  margin: 0.2rem 0 0 0.95rem;
  padding: 0;
}
.iack-toc li {
  margin: 0.2rem 0;
}
.iack-toc a {
  text-decoration: none;
  color: #0f172a;
}
.iack-toc a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .ia-cards-grid {
    grid-template-columns: 1fr;
  }
}
