/* qma-customizer-local.css — Hotfixes WPCode v1.62-v1.66 — 2026-04-18 */

/* ZDU v1.62 — 2026-04-15 — kev-1 full-width centering fix */
.elementor-widget-container:has(.kev-outer) {
  overflow: visible !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.kev-wrap {
  max-width: 1440px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 32px;
  padding-right: 32px;
  box-sizing: border-box;
  width: 100%;
}

/* ZDU v1.63 — 2026-04-15 — lime buttons text contrast fix */
/* Texto blanco sobre #D1DF48 = contraste 1.8:1 — ilegible.
   Fix: color oscuro ZDU sobre lime. Aplica a todos los botones lime del sitio. */

.elementor-button[style*="background-color: #D1DF48"],
.elementor-button[style*="background-color: #d1df48"],
.elementor-button[style*="background-color:rgb(209, 223, 72)"],
.elementor-button[style*="background-color: rgb(209, 223, 72)"],
a[style*="background-color: #D1DF48"],
a[style*="background-color: #d1df48"],
.zdu-btn-lime,
.btn-lime {
  color: #0D1321 !important;
}

/* Cubrir también el hover para que no revierta a blanco */
.elementor-button[style*="background-color: #D1DF48"]:hover,
.elementor-button[style*="background-color: #d1df48"]:hover,
a[style*="background-color: #D1DF48"]:hover,
.zdu-btn-lime:hover,
.btn-lime:hover {
  color: #0D1321 !important;
}

/* ZDU v1.64 — 2026-04-15 — KEV-1 + ZDU button text override fix
   .kev-wrap a { color: var(--kev-teal) !important } pisa todos los <a> dentro del widget.
   Los botones con fondo lime/teal quedan ilegibles. Fix: color oscuro con !important. */

/* KEV-1 hero CTA — lime background */
.kev-btn--primary,
.kev-btn--primary:hover,
.kev-btn--primary:visited,
.kev-btn--primary:active {
  color: #0D1321 !important;
}

/* KEV-1 tier table CTAs */
.kev-tier-cta--intel,
.kev-tier-cta--intel:hover,
.kev-tier-cta--intel:visited {
  color: #0D1321 !important;
}
.kev-tier-cta--free,
.kev-tier-cta--free:hover {
  color: var(--kev-slate) !important;
}
.kev-tier-cta--free:hover {
  color: var(--kev-teal) !important;
}
.kev-tier-cta--enterprise,
.kev-tier-cta--enterprise:hover,
.kev-tier-cta--enterprise:visited {
  color: #D1DF48 !important;
}

/* ZDU universe buttons — lime background */
.zdu-uni__btn--primary,
.zdu-uni__btn--primary:hover,
.zdu-uni__btn--primary:visited,
.zdu-uni__btn--primary:active {
  color: #0D1321 !important;
}

/* ZDU global nav buttons — lime background */
.zdu-gn__btn--primary,
.zdu-gn__btn--primary:hover,
.zdu-gn__btn--primary:visited {
  color: #0D1321 !important;
}

/* ZDU v1.65 — 2026-04-15 — body.blog fix + dark theme all archives */

/* Blog homepage background */
body.blog {
  background-color: #0D1321 !important;
}

/* All archive/category pages background */
body.archive,
body.category {
  background-color: #0D1321 !important;
}
body.archive .site-content,
body.archive #content,
body.category .site-content,
body.category #content {
  background-color: #0D1321;
}

/* Cards dark — all archives */
body.archive .ast-article-inner,
body.category .ast-article-inner {
  background: #111927 !important;
  border: 1px solid rgba(167,139,250,0.13) !important;
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.2s;
}
body.archive .ast-article-inner:hover,
body.category .ast-article-inner:hover {
  border-color: rgba(167,139,250,0.35) !important;
}
body.archive .ast-article-inner .post-content,
body.category .ast-article-inner .post-content {
  padding: 18px 20px 16px;
}

/* Titles */
body.archive .entry-title a,
body.category .entry-title a {
  color: #E2E8F0 !important;
  text-decoration: none;
}
body.archive .entry-title a:hover,
body.category .entry-title a:hover {
  color: #D1DF48 !important;
}

/* Meta */
body.archive .entry-meta,
body.archive .entry-meta a,
body.category .entry-meta,
body.category .entry-meta a {
  color: #475569 !important;
  font-size: 0.72rem !important;
}

/* Excerpt */
body.archive .entry-summary p,
body.category .entry-summary p {
  color: #94A3B8 !important;
  font-size: 0.875rem !important;
  line-height: 1.65 !important;
}

/* Read more */
body.archive .ast-read-more-container a,
body.category .ast-read-more-container a,
body.archive .more-link,
body.category .more-link {
  color: #A78BFA !important;
  font-weight: 500 !important;
  text-decoration: none !important;
}
body.archive .ast-read-more-container a:hover,
body.category .ast-read-more-container a:hover {
  color: #D1DF48 !important;
}

/* Filter buttons — all archives */
body.archive .ast-post-filter-single.ast-button,
body.category .ast-post-filter-single.ast-button {
  background: #111927 !important;
  border: 1px solid rgba(167,139,250,0.22) !important;
  border-radius: 4px !important;
  color: #94A3B8 !important;
  font-size: 0.72rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em !important;
  padding: 5px 12px !important;
}
body.archive .ast-post-filter-single.ast-button:hover,
body.category .ast-post-filter-single.ast-button:hover {
  border-color: rgba(167,139,250,0.55) !important;
  color: #E2E8F0 !important;
}
body.archive .ast-post-filter-single.ast-button[aria-current="true"],
body.archive .ast-post-filter-single.ast-button.ast-post-filter-active,
body.category .ast-post-filter-single.ast-button[aria-current="true"],
body.category .ast-post-filter-single.ast-button.ast-post-filter-active {
  background: rgba(209,223,72,0.08) !important;
  border-color: #D1DF48 !important;
  color: #D1DF48 !important;
}

/* Pagination */
body.archive .pagination .page-numbers,
body.category .pagination .page-numbers {
  background: #111927 !important;
  border: 1px solid rgba(167,139,250,0.2) !important;
  color: #94A3B8 !important;
}
body.archive .pagination .page-numbers.current,
body.category .pagination .page-numbers.current {
  background: #1A2438 !important;
  border-color: #D1DF48 !important;
  color: #D1DF48 !important;
}

/* Clean up Astra separators */
body.archive .ast-separate-posts,
body.category .ast-separate-posts {
  border-color: transparent !important;
}

/* Archive title (Astra native, hidden since we have our own hero) */
body.archive .ast-archive-description,
body.category .ast-archive-description {
  display: none;
}

/* ZDU v1.66 — 2026-04-15 — Grid max-width aligned to hero 1400px */
body.archive .site-content > .ast-container,
body.category .site-content > .ast-container {
  max-width: 1400px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 40px !important;
  padding-right: 40px !important;
  box-sizing: border-box;
}