PROBLEMA:
Después de múltiples intentos, el CTA seguía viéndose diferente.
El CSS tenía demasiadas reglas extras que causaban conflictos.
SOLUCIÓN DEFINITIVA:
REEMPLAZAR COMPLETAMENTE cta.css con SOLO las reglas del template.
CAMBIOS:
1. cta.css - SIMPLIFICADO (329 líneas → 54 líneas)
ANTES: 329 líneas con:
- !important extras
- Media queries complicadas
- Reglas de accessibility
- Dark mode support
- Print styles
- Animaciones
- Loading states
DESPUÉS: 54 líneas con SOLO:
- .cta-section (4 reglas básicas)
- .cta-section h3 (1 regla)
- .cta-section p (1 regla)
- .cta-button (8 reglas básicas)
- .cta-button:hover (2 reglas)
- Media query mobile (3 reglas)
2. functions.php - Version bump
- 1.0.1 → 1.0.2 para forzar recarga de CSS
CSS EXACTO COPIADO DEL TEMPLATE:
```css
.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;
}
```
RESULTADO:
- CSS 100% igual al template
- Sin extras ni sobrescrituras complicadas
- Bootstrap classes funcionarán normalmente
- Hard refresh (Ctrl+F5) con ?ver=1.0.2
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
54 lines
1.1 KiB
CSS
54 lines
1.1 KiB
CSS
/**
|
|
* CTA A/B Testing Styles
|
|
*
|
|
* CSS EXACTO copiado del template style.css (líneas 835-865)
|
|
* Sin extras, sin !important innecesario, sin media queries complicadas
|
|
*
|
|
* @package APUS_Theme
|
|
* @since 1.0.2
|
|
*/
|
|
|
|
.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;
|
|
}
|
|
|
|
/* Responsive Mobile */
|
|
@media (max-width: 768px) {
|
|
.cta-section {
|
|
padding: 1.5rem;
|
|
}
|
|
|
|
.cta-button {
|
|
width: 100%;
|
|
margin-top: 1rem;
|
|
}
|
|
}
|