feat: Implementar componente CTA A/B Testing completo

- Actualizar textos de variantes A y B en single.php
  - Variante A: "Accede a 200,000+ Análisis de Precios Unitarios"
  - Variante B: "¿Necesitas Consultar Más APUs?"
  - Agregar iconos bi-arrow-right en botones
  - Agregar clases Bootstrap responsive (my-5, p-4, mt-3, mt-md-0)

- Agregar CSS completo en style.css (líneas 1065-1109)
  - Gradiente naranja (orange-primary → orange-light)
  - Box shadow naranja pronunciada (efecto glow)
  - Textos blancos con !important para legibilidad
  - Botón naranja con hover
  - Estilos responsive para móvil

JavaScript ya existía implementado (sin cambios).

🤖 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 16:15:53 -06:00
parent aea88f8738
commit 9fa353db80
2 changed files with 60 additions and 12 deletions

View File

@@ -1061,3 +1061,49 @@ img {
.share-buttons .btn:hover {
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
/* === CTA A/B TESTING === */
.cta-section {
background: linear-gradient(135deg, var(--color-orange-primary) 0%, var(--color-orange-light) 100%);
box-shadow: 0 8px 24px rgba(255, 133, 0, 0.3);
border-radius: 12px;
padding: 2rem;
}
.cta-section h3 {
color: #ffffff !important;
}
.cta-section p {
color: rgba(255, 255, 255, 0.95) !important;
}
.cta-button {
background-color: var(--color-orange-primary);
color: #ffffff;
font-weight: 600;
padding: 0.75rem 2rem;
border: none;
border-radius: 8px;
transition: all 0.3s ease;
text-decoration: none;
display: inline-block;
}
.cta-button:hover {
background-color: var(--color-orange-hover);
color: #ffffff;
}
/* Mobile */
@media (max-width: 768px) {
.cta-section {
padding: 1.5rem;
}
.cta-button {
width: 100%;
margin-top: 1rem;
}
}

View File

@@ -116,29 +116,31 @@ get_header();
</div>
<!-- CTA A/B Testing (Template líneas 812-841) -->
<div class="cta-section cta-variant-a" data-variant="A" style="display: none;">
<!-- Variante A: Enfoque en Catálogo -->
<div class="my-5 p-4 rounded cta-section cta-variant-a" data-variant="A" style="display: none;">
<div class="row align-items-center">
<div class="col-md-8">
<h3 class="cta-title"><?php esc_html_e('¿Necesitas acceso a nuestro catálogo completo?', 'apus-theme'); ?></h3>
<p class="cta-text mb-md-0"><?php esc_html_e('Descarga miles de análisis de precios unitarios actualizados', 'apus-theme'); ?></p>
<h3 class="h4 fw-bold text-white mb-2">Accede a 200,000+ Análisis de Precios Unitarios</h3>
<p class="text-white mb-md-0">Consulta estructuras completas, insumos y dosificaciones de los APUs más utilizados en construcción en México.</p>
</div>
<div class="col-md-4 text-md-end">
<a href="<?php echo esc_url(home_url('/catalogo')); ?>" class="btn btn-light btn-lg cta-button" data-cta-variant="A">
<?php esc_html_e('Ver Catálogo', 'apus-theme'); ?>
<div class="col-md-4 text-md-end mt-3 mt-md-0">
<a href="<?php echo home_url('/catalogo'); ?>" class="btn btn-light btn-lg cta-button" data-cta-variant="A">
Ver Catálogo Completo <i class="bi bi-arrow-right ms-2"></i>
</a>
</div>
</div>
</div>
<div class="cta-section cta-variant-b" data-variant="B" style="display: none;">
<!-- Variante B: Enfoque en Membresía -->
<div class="my-5 p-4 rounded cta-section cta-variant-b" data-variant="B" style="display: none;">
<div class="row align-items-center">
<div class="col-md-8">
<h3 class="cta-title"><?php esc_html_e('¿Listo para optimizar tus proyectos?', 'apus-theme'); ?></h3>
<p class="cta-text mb-md-0"><?php esc_html_e('Únete a nuestra membresía y accede a contenido exclusivo', 'apus-theme'); ?></p>
<h3 class="h4 fw-bold text-white mb-2">¿Necesitas Consultar Más APUs?</h3>
<p class="text-white mb-md-0">Accede a nuestra biblioteca de 200,000 análisis de precios unitarios con estructuras detalladas y listados de insumos.</p>
</div>
<div class="col-md-4 text-md-end">
<a href="<?php echo esc_url(home_url('/planes')); ?>" class="btn btn-light btn-lg cta-button" data-cta-variant="B">
<?php esc_html_e('Conocer Planes', 'apus-theme'); ?>
<div class="col-md-4 text-md-end mt-3 mt-md-0">
<a href="<?php echo home_url('/planes'); ?>" class="btn btn-light btn-lg cta-button" data-cta-variant="B">
Conocer Planes de Membresía <i class="bi bi-arrow-right ms-2"></i>
</a>
</div>
</div>