[COMPONENTE 12] Implementar CTA Box Sidebar - Issue #123

NUEVO ARCHIVO:
- template-parts/content-cta-box.php (24 líneas)
  * Caja CTA naranja con título, texto y botón
  * Abre modal de contacto con data-bs-toggle
  * Solo se muestra en posts individuales

ARCHIVOS MODIFICADOS:
- single.php (línea 202)
  * Integrado CTA Box en sidebar después del TOC
  * Usa get_template_part('template-parts/content', 'cta-box')

- assets/css/style.css (+46 líneas, 1009-1052)
  * Comentario separador: /* === CTA BOX SIDEBAR === */
  * 5 selectores CSS principales:
    - .cta-box-sidebar (fondo naranja, height 250px, flexbox)
    - .cta-box-title (blanco, bold, 1.25rem)
    - .cta-box-text (blanco 95% opacidad, 0.9rem)
    - .btn-cta-box (fondo blanco, texto naranja)
    - .btn-cta-box:hover (fondo navy, texto blanco)

CARACTERÍSTICAS:
 Altura fija de 250px (crítica para cálculo TOC max-height)
 Contenido centrado verticalmente con flexbox
 Box shadow naranja para efecto "glow"
 Inversión de colores en hover (blanco→navy)
 Integración con Bootstrap modal nativo

🔗 Closes #123

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
FrankZamora
2025-11-07 10:04:41 -06:00
parent c5ce5eb06d
commit 7f1f210693
3 changed files with 72 additions and 1 deletions

View File

@@ -198,7 +198,8 @@ get_header();
<div class="sidebar-sticky">
<?php get_template_part('template-parts/content', 'toc'); ?>
<!-- Aquí irá el CTA Box (componente 12) -->
<!-- CTA Box -->
<?php get_template_part('template-parts/content', 'cta-box'); ?>
</div>
</div>