/* Reset suave + utilidades */
:root {
  --ai-bg: #0f1115;
  --ai-fg: #eaeef5;
  --ai-accent: #00ff80;
  --ai-muted: #9aa3b2;
  --ai-radius: 14px;
}

/* Encapsulado global */
.theme-ai,
.theme-ai html,
.theme-ai body {
  padding: 0;
  margin: 0;
  background: var(--ai-bg);
  color: var(--ai-fg);
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Quitar todo borde o relleno exterior */
.theme-ai #page,
.theme-ai #content,
.theme-ai main,
.theme-ai .site {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  width: 100%;
}

/* Header completo, pegado arriba */
.theme-ai .site-header {
  background: var(--lyra-menu-bg, #000);
  color: var(--lyra-menu-color, #fff);
  margin: 0;
  padding: 0;
  border: none;
  width: 100%;
}
.theme-ai .site-header .wrap {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--lyra-menu-height, 70px);
}

/* Logo */
.theme-ai .lyra-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.theme-ai .lyra-logo img {
  max-height: calc(var(--lyra-menu-height, 70px) - 20px);
  height: auto;
}

/* Menú principal */
.theme-ai .primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 24px;
  align-items: center;
}
.theme-ai .primary-nav a {
  color: var(--lyra-menu-color, #fff);
  text-decoration: none;
  line-height: 1;
  padding: 8px 4px;
  transition: opacity 0.2s ease;
}
.theme-ai .primary-nav a:hover {
  opacity: 0.85;
}

/* Contenido principal */
.theme-ai .entry-content {
  line-height: 1.7;
  margin: 0;
  padding: 0;
}
.theme-ai .entry-content > *:first-child {
  margin-top: 0;
}
.theme-ai .entry-content > *:last-child {
  margin-bottom: 0;
}

/* Imágenes y enlaces */
.theme-ai img {
  max-width: 100%;
  height: auto;
  display: block;
}
.theme-ai a {
  color: var(--ai-accent);
  text-decoration: none;
}
.theme-ai a:hover {
  opacity: 0.9;
}

/* ====== Landings generadas por AI Builder ====== */
.aibp-landing {
  background: var(--ai-bg);
  color: var(--ai-fg);
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
}
.aibp-landing .btn,
.aibp-landing .cta-button,
.aibp-landing button {
  background: var(--ai-accent);
  color: #0b0f12;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 700;
  display: inline-block;
  box-shadow: 0 10px 30px rgba(0, 255, 128, 0.15);
}
@media (min-width: 1024px) {
  .aibp-landing {
    padding: 40px 48px;
  }
}

/* Compatibilidad WordPress */
.theme-ai .wp-caption {
  max-width: 100%;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px;
  border-radius: 6px;
}
.theme-ai .wp-caption-text,
.theme-ai .gallery-caption {
  font-size: 0.9em;
  color: #bbb;
  margin-top: 4px;
}
.theme-ai .alignleft {
  float: left;
  margin: 0.5em 1em 0.5em 0;
}
.theme-ai .alignright {
  float: right;
  margin: 0.5em 0 0.5em 1em;
}
.theme-ai .aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
