/* ==========================================================
 * qma-luna-gen.css — Luna Varela GEN Identity System
 * v1.0.3.20260510
 *
 * Deploy: /wp-content/themes/qma-child/css/qma-luna-gen.css
 * Enqueue: functions.php — priority 20, dep: qma-zdu
 *   wp_enqueue_style('qma-luna-gen',
 *     get_stylesheet_directory_uri() . '/css/qma-luna-gen.css',
 *     ['qma-zdu'], '1.0.0.20260510');
 *
 * Scope: GEN articles (author_id=2) + gen-chapter elements
 *
 * Carga site-wide (inerte sin clases GEN en el HTML).
 * Override de colores Luna desde qma-author-credits.inline.css
 * (inline en wp_head priority 10 — este file carga priority 20,
 * por lo que gana en cascada sin necesidad de !important en la
 * mayoría de reglas).
 *
 * PARA CC:
 * 1. Deploy este archivo vía FTPS a /wp-content/themes/qma-child/css/
 * 2. Agregar enqueue en functions.php (ver arriba)
 * 3. Bumpar version en enqueue al hacer edits futuros
 * 4. Ver notas backfill al final de este archivo
 * ========================================================== */

/* -----------------------------------------------------------
 * PALETA LUNA — variables canónicas
 * ----------------------------------------------------------- */
:root {
  --luna-champagne:      #C9A87C;   /* firma Luna — dorado cálido */
  --luna-champagne-lt:   #E8D5B0;   /* borde suave, divisores */
  --luna-champagne-bg:   #FDF8F0;   /* fondo cream chips + dialog */
  --luna-copper:         #8B5C2A;   /* copper oscuro — texto activo */
  --luna-copper-dark:    #5A3A18;   /* copper muy oscuro — body text */
  --luna-cream:          #FAF5EA;   /* background hover / sutil */
  --luna-shadow:         rgba(201, 168, 124, 0.18);
}


/* -----------------------------------------------------------
 * 1. LUNA BYLINE (author_id=2)
 *    Reemplaza #A78BFA (purple heredado) con champagne.
 *    Afecta: top byline role tag, bottom bio border, hovers,
 *    role-tag, CTA link.
 * ----------------------------------------------------------- */
.qma-author-credit[data-author="2"] .qma-author-credit__role {
  color: var(--luna-champagne);
}
.qma-author-credit[data-author="2"] .qma-author-credit__role-tag {
  color: var(--luna-champagne);
}
.qma-author-credit[data-author="2"].qma-author-credit--top
  .qma-author-credit__link:hover
  .qma-author-credit__byline {
  color: var(--luna-champagne);
}
.qma-author-credit[data-author="2"].qma-author-credit--bottom {
  border-left-color: var(--luna-champagne);
  background: linear-gradient(135deg, var(--luna-champagne-bg) 0%, #fff 80%);
}
.qma-author-credit[data-author="2"] .qma-author-credit__name a:hover {
  color: var(--luna-champagne);
}
.qma-author-credit[data-author="2"] .qma-author-credit__cta {
  color: var(--luna-copper);
}
.qma-author-credit[data-author="2"] .qma-author-credit__cta:hover {
  color: var(--luna-champagne);
  border-bottom-color: var(--luna-champagne);
}


/* -----------------------------------------------------------
 * 2. GEN-CHAPTER-TITLE (H2 del bloque ZDU narrativo)
 *    Override del lime #D1DF48 que hereda de qma-zdu.css
 *    (.zdu-chapter-title { color: var(--zdu-green) })
 *    Aplica el gradient champagne → copper, firma de Luna.
 * ----------------------------------------------------------- */
.gen-chapter .gen-chapter-title,
h2.gen-chapter-title {
  background: linear-gradient(135deg, var(--luna-champagne) 0%, var(--luna-copper) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--luna-champagne); /* fallback navegadores sin background-clip */
  margin-top: 48px;
  padding-top: 8px;
}


/* -----------------------------------------------------------
 * 3. H3 HERO ANGLES en gen-chapter
 *    Override del #6833CA (purple) definido en mu-plugin
 *    inline CSS para .gen-chapter h3.
 *    Copper cálido — distingue GEN (diurno) de ZDU (oscuro).
 *    !important necesario porque el inline <style> de
 *    qma-author-credits.php tiene mismo specificity pero
 *    precede a este file en el <head>. Por regla de cascada
 *    igual specificity → último gana, pero inline style tags
 *    son quirky; se usa !important como seguro.
 * ----------------------------------------------------------- */
.gen-chapter h3 {
  color: var(--luna-copper) !important;
  border-bottom: 1px solid var(--luna-champagne-lt);
  padding-bottom: 5px;
  letter-spacing: 0.025em;
}


/* -----------------------------------------------------------
 * 4. ZDU-DIALOG--LUNA — NUEVA CLASE
 *    Luna habla con voz propia. Cream/champagne, copper border.
 *    Font-style italic marca el tono editorial vs análisis técnico.
 *
 *    WF12 debe emitir:
 *      <div class="zdu-dialog zdu-dialog--luna">
 *    cuando Luna es el speaker de cierre (no dentro de --neon).
 *
 *    Selector strong coincide con el patrón de hero colorize
 *    del mu-plugin (se añade .zdu-dialog--luna strong aquí).
 * ----------------------------------------------------------- */
.zdu-dialog--luna {
  background: linear-gradient(135deg, var(--luna-champagne-bg) 0%, #fff 100%);
  border-left: 3px solid var(--luna-champagne);
  border-radius: 6px;
  padding: 20px 24px;
  margin: 16px 0;
  font-style: italic;
}
.zdu-dialog--luna strong {
  color: var(--luna-copper);
  font-style: normal;
  font-weight: 700;
}
.zdu-dialog--luna p {
  color: #2D1A0A;
  font-size: 15px;
  line-height: 1.75;
}
.zdu-dialog--luna em {
  opacity: 0.75;
}


/* -----------------------------------------------------------
 * 5. ACTOR CHIPS — copper-red, señal de amenaza
 *    Diferencia visualmente qma-chip--actor de los KPI chips
 *    genéricos (violet) del meta-bar GEN.
 *
 *    PHP partial (qma-gen-header.php) debe añadir esta clase
 *    a los chips de actor. Post meta: _qma_gen_actor (array).
 *    Leer notas backfill al final.
 * ----------------------------------------------------------- */
.qma-chip--actor {
  background: rgba(139, 92, 42, 0.08) !important;
  color: #7A3A10 !important;
  border: 1px solid rgba(139, 92, 42, 0.30) !important;
  font-weight: 600 !important;
}
.qma-chip--actor::before {
  content: '\26A0\A0'; /* ⚠ unicode, compatible con todos los browsers */
  font-size: 10px;
  opacity: 0.65;
}


/* -----------------------------------------------------------
 * 6. LUNA-CREDITS-GRID — class-based credits block
 *    Reemplaza los inline styles del creditsBlock en WF12.
 *    HTML esperado:
 *      <div class="luna-credits-grid">
 *        <div>
 *          <p class="luna-credits-grid__label">G.E.N.N.I.E. ...</p>
 *          <p class="luna-credits-grid__text">...</p>
 *        </div>
 *        <div>
 *          <p class="luna-credits-grid__label">Luna Varela ...</p>
 *          <p class="luna-credits-grid__text">...</p>
 *        </div>
 *      </div>
 * ----------------------------------------------------------- */
.luna-credits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 28px 0 12px;
  border-top: 2px solid var(--luna-champagne-lt);
  background: linear-gradient(90deg, rgba(201,168,124,0.06) 0%, transparent 60%);
  margin-top: 16px;
}
.luna-credits-grid__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--luna-champagne);
  margin: 0 0 6px;
}
.luna-credits-grid__text {
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  color: #3a3a3a;
  opacity: 0.9;
}
@media (max-width: 600px) {
  .luna-credits-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}


/* -----------------------------------------------------------
 * 7. ZDU-GENNIE-DIVIDER.gen — variante champagne
 *    El divider que separa capa CISO de capa ZDU en GEN posts.
 *    WF12 debe emitir: class="zdu-gennie-divider gen"
 *    (agregar clase "gen" al div existente).
 * ----------------------------------------------------------- */
.zdu-gennie-divider.gen {
  background: linear-gradient(90deg, rgba(201,168,124,0.08) 0%, transparent 70%);
  border-left: 2px solid var(--luna-champagne);
  border-top: none;
  border-right: none;
  border-bottom: none;
  border-radius: 0 6px 6px 0;
}


/* -----------------------------------------------------------
 * 8. GEN KPI CHIPS — champagne palette
 *    Reemplaza lilac/purple de qma-author-credits.inline.css:
 *      background: rgba(167,139,250,0.10)  →  champagne
 *      color: #7B5FE5                      →  copper
 *      border: rgba(167,139,250,0.35)      →  champagne
 *
 *    DOS contextos:
 *    A) Posts nuevos (post-refactor 2026-05-09):
 *       chips en .qma-meta-bar--gen .qma-meta-bar__kpis
 *    B) Posts legacy (pre-refactor, GEN-040 y anteriores):
 *       chips en .qma-proof dentro de qma-breadcrumb-bar
 *       que contiene qma-chip--gen
 *
 *    :not() guards:
 *      .qma-chip--gen  → se mantiene violet #6833CA (firma GEN)
 *      .qma-chip--actor → se mantiene copper-red (§5, amenaza)
 *      .qma-chip--zdu  → se mantiene navy (firma ZDU, no aplica
 *                         en GEN pero guard por si hay legacy mix)
 *
 *    !important necesarios: regla base de mu-plugin tiene
 *    mayor especificidad (.qma-meta-bar--gen .qma-meta-bar__kpis .qma-chip)
 *    que la que aquí se agrega. !important garantiza override
 *    sin elevar specificity innecesariamente.
 * ----------------------------------------------------------- */

/* A) Meta-bar chips — posts nuevos (PHP partial post-refactor) */
.qma-meta-bar--gen .qma-meta-bar__kpis .qma-chip:not(.qma-chip--gen):not(.qma-chip--actor) {
  background: rgba(201, 168, 124, 0.12) !important;
  color: #7A4A1E !important;
  border: 1px solid rgba(201, 168, 124, 0.32) !important;
}

/* B1) qma-proof chips — posts legacy via CSS4 :has()
 *     Funciona cuando qma-breadcrumb-bar y qma-proof son hermanos
 *     en el DOM. Cobertura ~94% navegadores (caniuse May 2026).
 *     Chrome 105+, Safari 15.4+, Firefox 121+. */
.qma-breadcrumb-bar:has(.qma-chip--gen) ~ .qma-proof .qma-chip:not(.qma-chip--zdu):not(.qma-chip--actor) {
  background: rgba(201, 168, 124, 0.12) !important;
  color: #7A4A1E !important;
  border: 1px solid rgba(201, 168, 124, 0.32) !important;
}

/* B2) qma-proof chips — fallback clase PHP (CC agrega en mu-plugin
 *     o qma-gen-header.php cuando detecta autor=2 o post_type GEN).
 *     HTML target: <div class="qma-proof qma-proof--gen"> */
.qma-proof--gen .qma-chip:not(.qma-chip--zdu):not(.qma-chip--actor) {
  background: rgba(201, 168, 124, 0.12) !important;
  color: #7A4A1E !important;
  border: 1px solid rgba(201, 168, 124, 0.32) !important;
}


/* -----------------------------------------------------------
 * 9. QMA-CHIP--GEN — copper oscuro, firma GEN
 *    DECISIÓN PUPPETMASTER 2026-05-10:
 *    El chip de firma GEN pasa de purple #6833CA a copper oscuro.
 *    Razón: en el contexto champagne de Luna, el purple no resalta
 *    suficientemente vs los KPI chips. El copper fuerte actúa como
 *    anchor visual claro — distinto de los champagne suaves del
 *    meta-bar y del copper-red de actor.
 *
 *    Los guards :not(.qma-chip--gen) en §8 se mantienen —
 *    correctos porque §9 define el gen chip aquí con sus propias
 *    reglas. No hay conflicto.
 *
 *    !important necesario: regla fuente en mu-plugin inline CSS
 *    (qma-author-credits.php:292) tiene specificity .qma-chip.qma-chip--gen
 *    que es 0-2-0. Este file usa el mismo selector, necesita
 *    !important para ganar por ser posterior en la cascada y
 *    estar en stylesheet (no inline).
 * ----------------------------------------------------------- */
.qma-chip.qma-chip--gen {
  background: #6B3A10 !important;   /* copper oscuro — strong, legible */
  color: #fff !important;
  border-color: #6B3A10 !important;
}
.qma-chip.qma-chip--gen:hover {
  background: #8B5C2A !important;
  border-color: #8B5C2A !important;
}


/* -----------------------------------------------------------
 * 10. GEN-CHAPTER DARK SECTION — Luna warm dark palette
 *
 *  Problema diagnosticado:
 *  A) .zdu-chapter { background: #0D1321 } cold navy — override
 *  B) .zdu-chapter h2 { color: var(--zdu-teal) } — pisa title
 *  C) .zdu-dialog-speaker clase solo en ZDU posts; GEN posts
 *     usan <strong>Hero:</strong> sin la clase — hay que dar
 *     estilo de chip al strong:first-child en gen-chapter
 *  D) .zdu-dialog--luna en qma-zdu.css usa purple #A78BFA
 *
 *  Solución:
 *  - gen-chapter background: mahogany oscuro #1C1008 (cálido)
 *  - gen-chapter-title gradient champagne con !important en todo
 *  - H3 en champagne (copper muy oscuro sobre mahogany)
 *  - Dialogs hero: tinte de color canónico más visible
 *  - strong:first-child en dialogs: chip visual con DNA del héroe
 *  - zdu-dialog-speaker en gen-chapter: chip reforzado
 *  - Texto dialogs: warm white #D8CDBC (no cold slate)
 *  - zdu-dialog--luna en dark: champagne sobre mahogany
 * ----------------------------------------------------------- */

/* ── A) Contenedor gen-chapter — mahogany cálido oscuro ──── */
.gen-chapter {
  background: linear-gradient(160deg, #1C1008 0%, #12080A 100%);
  color: #D8CDBC;
  border: 1px solid rgba(201, 168, 124, 0.14);
  border-radius: 10px;
  padding: 36px 32px 44px;
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}
/* Accent line izquierda — firma Luna */
.gen-chapter::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg,
    var(--luna-champagne) 0%,
    rgba(201, 168, 124, 0) 100%);
  border-radius: 3px 0 0 3px;
}

/* ── B) gen-chapter-title H2 — champagne gradient (full !important) */
/* Override de: .zdu-chapter h2 { color: var(--zdu-teal) }           */
/* Override de: .zdu-title { color: var(--zdu-white) }               */
.gen-chapter .gen-chapter-title,
.gen-chapter .zdu-title,
.gen-chapter h2.zdu-title,
h2.gen-chapter-title {
  background: linear-gradient(
    135deg,
    var(--luna-champagne) 0%,
    var(--luna-copper) 100%
  ) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: var(--luna-champagne) !important; /* fallback navegadores sin clip */
  font-size: clamp(22px, 3.8vw, 32px) !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: -.01em !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
  margin-bottom: 32px !important;
  /* override ::after que agrega hr teal de qma-zdu.css */
  text-transform: none !important;
  display: block !important;
}
/* Eliminar la línea decorativa teal que agrega .zdu-chapter h2::after */
.gen-chapter h2::after {
  display: none !important;
}

/* ── C) H3 hero angles en dark — champagne */
/* Copper #8B5C2A no tiene contraste sobre mahogany #1C1008 */
.gen-chapter h3 {
  color: var(--luna-champagne) !important;
  border-bottom: 1px solid rgba(201, 168, 124, 0.22) !important;
  padding-bottom: 6px;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.10em !important;
  text-transform: uppercase !important;
  margin-top: 36px;
  margin-bottom: 0;
}

/* ── D) Dialog cards — dark variants con DNA del héroe ──────── */
/* Override de los fondos suaves de qma-zdu.css en dark context */
.gen-chapter .zdu-dialog {
  border-radius: 8px;
  padding: 18px 20px;
  margin: 12px 0 20px;
  font-style: normal;
  border-left-width: 3px;
  border-left-style: solid;
}
.gen-chapter .zdu-dialog--neon {
  background: rgba(96, 165, 250, 0.09);
  border-left-color: #60A5FA;
}
.gen-chapter .zdu-dialog--eris {
  background: rgba(239, 68, 68, 0.09);
  border-left-color: #EF4444;
}
.gen-chapter .zdu-dialog--magna {
  background: rgba(245, 158, 11, 0.09);
  border-left-color: #F59E0B;
}
.gen-chapter .zdu-dialog--blacktrace {
  background: rgba(100, 116, 139, 0.12);
  border-left-color: #64748B;
}
.gen-chapter .zdu-dialog--regulator,
.gen-chapter .zdu-dialog--reg {
  background: rgba(209, 223, 72, 0.07);
  border-left-color: #D1DF48;
}
.gen-chapter .zdu-dialog--veritas {
  background: rgba(148, 163, 184, 0.09);
  border-left-color: #94A3B8;
}
.gen-chapter .zdu-dialog--stratos {
  background: rgba(45, 212, 191, 0.08);
  border-left-color: #2DD4BF;
}
.gen-chapter .zdu-dialog--kev1 {
  background: rgba(209, 223, 72, 0.07);
  border-left-color: #D1DF48;
}
/* Luna en dark: champagne sobre mahogany */
.gen-chapter .zdu-dialog--luna {
  background: rgba(201, 168, 124, 0.09) !important;
  border-left-color: var(--luna-champagne) !important;
  border-left-width: 3px !important;
  font-style: italic;
}

/* ── E) Texto de dialogs en dark — warm white ──────────────── */
.gen-chapter .zdu-dialog p {
  color: #D8CDBC;
  font-size: 15px;
  line-height: 1.78;
  margin-bottom: 12px;
}
.gen-chapter .zdu-dialog p:last-child { margin-bottom: 0; }
.gen-chapter .zdu-dialog em { color: #A89880; opacity: 1; }
/* Luna dialog text en dark */
.gen-chapter .zdu-dialog--luna p {
  color: #E8D5B0;
}

/* ── F) Speaker chips — DNA del héroe como badge ──────────── */
/*
 * Dos formatos coexisten:
 * 1. .zdu-dialog-speaker (ZDU posts, clase explícita)
 * 2. p > strong:first-child (GEN posts de WF12, sin clase)
 * Ambos reciben el mismo tratamiento de chip.
 */

/* Base chip: badge inline en bloque propio */
.gen-chapter .zdu-dialog-speaker,
.gen-chapter .zdu-dialog p > strong:first-child {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-style: normal;
  margin-bottom: 10px;
  /* Forzar que quede en su propia línea */
  display: block;
  width: fit-content;
}
/* Dot before (hereda el estilo de qma-zdu.css que ya tiene .zdu-dialog-speaker) */

/* DNA colors: speaker badge por héroe */
.gen-chapter .zdu-dialog--neon       .zdu-dialog-speaker,
.gen-chapter .zdu-dialog--neon       p > strong:first-child {
  background: rgba(96, 165, 250, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.35);
  color: #93C5FD;  /* blue-300 — brighter on dark */
}
.gen-chapter .zdu-dialog--eris       .zdu-dialog-speaker,
.gen-chapter .zdu-dialog--eris       p > strong:first-child {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #FCA5A5;  /* red-300 */
}
.gen-chapter .zdu-dialog--magna      .zdu-dialog-speaker,
.gen-chapter .zdu-dialog--magna      p > strong:first-child {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #FCD34D;  /* amber-300 */
}
.gen-chapter .zdu-dialog--blacktrace .zdu-dialog-speaker,
.gen-chapter .zdu-dialog--blacktrace p > strong:first-child {
  background: rgba(100, 116, 139, 0.18);
  border: 1px solid rgba(100, 116, 139, 0.40);
  color: #94A3B8;  /* slate-400 */
}
.gen-chapter .zdu-dialog--regulator  .zdu-dialog-speaker,
.gen-chapter .zdu-dialog--reg        .zdu-dialog-speaker,
.gen-chapter .zdu-dialog--regulator  p > strong:first-child,
.gen-chapter .zdu-dialog--reg        p > strong:first-child {
  background: rgba(209, 223, 72, 0.12);
  border: 1px solid rgba(209, 223, 72, 0.35);
  color: #D1DF48;  /* zdu-green */
}
.gen-chapter .zdu-dialog--veritas    .zdu-dialog-speaker,
.gen-chapter .zdu-dialog--veritas    p > strong:first-child {
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.32);
  color: #CBD5E1;  /* slate-300 */
}
.gen-chapter .zdu-dialog--stratos    .zdu-dialog-speaker,
.gen-chapter .zdu-dialog--stratos    p > strong:first-child {
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.35);
  color: #5EEAD4;  /* teal-300 */
}
.gen-chapter .zdu-dialog--kev1       .zdu-dialog-speaker,
.gen-chapter .zdu-dialog--kev1       p > strong:first-child {
  background: rgba(209, 223, 72, 0.12);
  border: 1px solid rgba(209, 223, 72, 0.35);
  color: #D1DF48;
}
/* Luna speaker badge */
.gen-chapter .zdu-dialog--luna       .zdu-dialog-speaker,
.gen-chapter .zdu-dialog--luna       p > strong:first-child {
  background: rgba(201, 168, 124, 0.15);
  border: 1px solid rgba(201, 168, 124, 0.35);
  color: var(--luna-champagne);
  font-style: normal;
}

/* ── G) Credits + divider en dark ───────────────────────────── */
.gen-chapter .zdu-credits {
  color: rgba(201, 168, 124, 0.45);
  border-top-color: rgba(201, 168, 124, 0.16);
  margin-top: 32px;
  padding-top: 16px;
  font-size: 13px;
}

/* ── H) Responsive ──────────────────────────────────────────── */
@media (max-width: 600px) {
  .gen-chapter {
    padding: 24px 20px 32px;
    border-radius: 6px;
  }
}


/* -----------------------------------------------------------
 * NOTAS DE BACKFILL PARA CC
 * -----------------------------------------------------------
 *
 * A) zdu-dialog--luna:
 *    grep: <strong>Luna Varela — Co-autora editorial:</strong>
 *    dentro de: class="zdu-dialog zdu-dialog--neon"
 *    cambiar a: class="zdu-dialog zdu-dialog--luna"
 *
 * B) luna-credits-grid:
 *    grep: display:grid;grid-template-columns:1fr 1fr
 *    (el inline style del creditsBlock generado por WF12)
 *    cambiar a: class="luna-credits-grid"
 *    con BEM: __label y __text en los <p> hijos
 *
 * C) zdu-gennie-divider.gen:
 *    grep: class="zdu-gennie-divider"
 *    cambiar a: class="zdu-gennie-divider gen"
 *
 * D) Actor chips en PHP partial:
 *    qma-gen-header.php → leer _qma_gen_actor post meta
 *    (el WF12 ya guarda _qma_gen_actor como str en meta)
 *    chips de actor → agregar clase qma-chip--actor
 *
 * E) WF12 system prompt updates:
 *    1. Agregar zdu-dialog--luna al roster CSS
 *    2. Instrucción: Luna closing editorial → zdu-dialog--luna
 *    3. Reemplazar creditsBlock inline styles por luna-credits-grid
 *    4. Emitir zdu-gennie-divider con class="gen" adicional
 *
 * F) Chips champagne — CC (§8):
 *    1. qma-gen-header.php → agregar clase qma-proof--gen al
 *       div .qma-proof cuando author_id=2 (Luna) o article_type GEN
 *       Esto activa B2 como fallback para legacy posts sin :has()
 *    2. Bump version en enqueue a 1.0.3.20260510
 * G) qma-chip--gen — copper (Puppetmaster 2026-05-10):
 *    qma-author-credits.php l.292 — NO es necesario editar el PHP.
 *    El override en este CSS file (§9) es suficiente vía !important.
 *    CC puede dejar el PHP intacto o actualizarlo para coherencia.
 *
 * H) gen-chapter dark section — CSS only (§10):
 *    Sin cambios en WF12 para §10. El HTML existente
 *    (class="zdu-chapter gen-chapter") ya tiene las clases
 *    correctas. El CSS nuevo hace todo el trabajo.
 *    No se requiere backfill de HTML para este punto.
 *    Solo deploy del CSS v1.0.3 y bump en enqueue.
 * ----------------------------------------------------------- */

/* ════════════════════════════════════════════════════════════════
   §11 GEN FIGURE CANON — 2026-05-12
   Hero image wrapper for GEN posts (post-header, pre-CISO analysis).
   .gen-figure-placeholder: visible slot while ARDEA hasn't generated image.
   Markup: <figure class="gen-figure-main">
             <img class="aligncenter size-large wp-image-NNNNN" ...>  // imagen real
             OR
             <div class="gen-figure-placeholder"><span>ARDEA image slot · gen-NNN-main · 16:9</span></div>
           </figure>
   Aplica site-wide (inerte si no hay .gen-figure-main en el HTML).
   ════════════════════════════════════════════════════════════════ */
.gen-figure-main {
    margin: 24px 0 28px;
}
.gen-figure-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d1a0a 60%, #1a1a2e 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gen-figure-placeholder span {
    color: rgba(201, 168, 124, 0.35);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
/* ===== /§11 GEN FIGURE CANON ===== */
