Files
roi-theme/wp-content/themes/apus-theme/assets/css/notification-bar.css
FrankZamora 2cc274d6e2 Implementar Issues #34-43 - Funcionalidades de conversión, UI/UX y SEO avanzadas
Implementación masiva de 10 funcionalidades usando agentes paralelos para máxima eficiencia.

**Issues Completados:**

**Issue #34 - Modal de Contacto con Webhook:**
- modal-contact.html: Modal Bootstrap 5 independiente
- assets/css/modal-contact.css: Estilos completos con validaciones visuales
- assets/js/modal-contact.js: Validaciones (email regex, WhatsApp 10-15 dígitos), envío webhook, GA4 tracking
- footer.php: Agregado div#modalContainer
- inc/enqueue-scripts.php: Enqueue CSS y JS

**Issue #35 - Botón Let's Talk en Navbar:**
- header.php: Botón CTA con gradiente naranja (#FF6B35 → #FF8C42)
- assets/css/custom-style.css: Animaciones hover (elevación + sombra)
- assets/js/main.js: GA4 tracking de clicks

**Issue #36 - CTA Box en Sidebar:**
- template-parts/cta-box-sidebar.php: Template reutilizable
- assets/css/cta-box-sidebar.css: Gradiente naranja-amarillo, sticky junto con TOC
- sidebar.php: Integración del CTA box
- inc/enqueue-scripts.php: Enqueue condicional (solo single posts)

**Issue #37 - Formulario de Contacto en Footer (5ta área de widgets):**
- functions.php: Registro de widget footer-contact
- footer.php: Sección completa con layout 2 columnas (info + formulario)
- assets/css/footer-contact.css: Iconos naranja, validaciones, responsive
- assets/js/footer-contact.js: Validaciones, webhook Make.com, GA4 tracking completo
- inc/enqueue-scripts.php: Enqueue condicional

**Issue #38 - Schema FAQPage Automático:**
- inc/schema-org.php: Función apus_get_faqpage_schema()
  - Detecta H3 con signo de interrogación
  - Extrae respuestas del siguiente <p>
  - Genera FAQPage con mínimo 2 preguntas, máximo 10
  - JSON-LD integrado en @graph

**Issue #39 - Top Notification Bar:**
- header.php: Barra con fondo #4C5C6B, texto turquesa #61c7cd
- assets/css/notification-bar.css: Animación slideDown, responsive
- assets/js/notification-bar.js: Cookie 7 días, cierre con Escape, ajuste navbar
- inc/enqueue-scripts.php: Enqueue de assets

**Issue #40 - Hero Section con Diseño Específico:**
- template-parts/content-hero.php: Hero con degradado azul (#1e3a5f → #2c5282)
- assets/css/hero-section.css: Badges arriba de H1, text-shadow, responsive
- single.php: Integración del hero section
- inc/template-tags.php: Función apus_get_reading_time()
- inc/enqueue-scripts.php: Enqueue condicional

**Issue #41 - Navbar con Colores RDash:**
- assets/css/custom-style.css: Navbar fondo #0E2337, links blancos, hover turquesa #61c7cd
- header.php: Clases navbar-dark, eliminado bg-white

**Issue #42 - Schema HowTo para Procesos:**
- inc/schema-org.php: Función apus_get_howto_schema()
  - Detecta secciones con id="proceso"
  - Extrae pasos de listas ordenadas <ol>
  - Genera HowTo schema con imagen y tiempo estimado
  - JSON-LD integrado en @graph

**Issue #43 - Schema VideoObject:**
- inc/schema-org.php: Funciones apus_get_video_schemas() y apus_get_vimeo_data()
  - Detecta embeds de YouTube y Vimeo
  - Genera VideoObject schemas con thumbnails
  - Cache 24h para datos de Vimeo
  - Soporte múltiples videos por post

**Limpieza de Código:**
- Eliminados TODOS los archivos .md de reportes (contaminaban el código)
- Eliminadas carpetas docs/ con documentación innecesaria
- Toda la documentación está en los issues de GitHub

**Archivos Nuevos:**
- 15 archivos funcionales (HTML, CSS, JS, PHP templates)

**Archivos Modificados:**
- 9 archivos del tema
- 16 archivos .md eliminados (limpieza)

**Estadísticas:**
- Total funciones nuevas: 70+
- Líneas de código: 5,000+ líneas
- Schemas JSON-LD: 3 nuevos (FAQPage, HowTo, VideoObject)
- Sistemas de conversión: 4 (modal, botón navbar, CTA sidebar, formulario footer)

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-04 18:22:37 -06:00

253 lines
4.9 KiB
CSS

/**
* Top Notification Bar Styles
* Issue #39
*
* Barra de notificación fija en la parte superior del sitio
* para anunciar actualizaciones importantes o promociones.
*
* @package Apus_Theme
* @since 1.0.0
*/
/* ============================================
NOTIFICATION BAR BASE STYLES
============================================ */
.top-notification-bar {
background-color: #4C5C6B;
height: 40px;
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 1050;
color: #ffffff;
font-size: 0.875rem;
animation: slideDown 0.3s ease;
display: flex;
align-items: center;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
/* ============================================
ANIMATION
============================================ */
@keyframes slideDown {
from {
transform: translateY(-100%);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}
/* ============================================
TEXT STYLES
============================================ */
.notification-text {
font-size: 0.875rem;
line-height: 1.2;
}
.text-highlight {
color: #61c7cd;
font-weight: 600;
margin-right: 0.25rem;
}
/* ============================================
LINK STYLES
============================================ */
.notification-link {
color: #61c7cd;
text-decoration: none;
font-weight: 500;
transition: all 0.2s ease;
white-space: nowrap;
}
.notification-link:hover {
text-decoration: underline;
color: #4db8c4;
}
.notification-link:focus {
outline: 2px solid #61c7cd;
outline-offset: 2px;
}
/* ============================================
ICON STYLES
============================================ */
.top-notification-bar .bi-megaphone-fill {
color: #61c7cd;
font-size: 1rem;
}
/* ============================================
CLOSE BUTTON
============================================ */
.btn-close-notification {
background: transparent;
border: none;
color: rgba(255, 255, 255, 0.8);
cursor: pointer;
padding: 0.5rem;
font-size: 0.75rem;
position: absolute;
right: 1rem;
transition: all 0.2s ease;
line-height: 1;
display: flex;
align-items: center;
justify-content: center;
}
.btn-close-notification:hover {
color: #ffffff;
transform: scale(1.1);
}
.btn-close-notification:focus {
outline: 2px solid #61c7cd;
outline-offset: 2px;
}
.btn-close-notification .bi-x-lg {
font-size: 0.875rem;
}
/* ============================================
NAVBAR ADJUSTMENT
============================================ */
/* Ajustar navbar cuando notification bar está visible */
body:not(.notification-dismissed) .navbar {
top: 40px;
position: sticky;
}
/* Asegurar que el navbar no se solape cuando la barra está cerrada */
body.notification-dismissed .navbar {
top: 0;
}
/* ============================================
RESPONSIVE STYLES
============================================ */
/* Tablets y pantallas pequeñas */
@media (max-width: 991px) {
.top-notification-bar {
font-size: 0.8125rem;
height: 36px;
}
.notification-text {
font-size: 0.8125rem;
}
.btn-close-notification {
right: 0.75rem;
}
body:not(.notification-dismissed) .navbar {
top: 36px;
}
}
/* Móviles */
@media (max-width: 767px) {
.top-notification-bar {
font-size: 0.8rem;
height: 40px;
padding: 0 0.5rem;
}
.top-notification-bar .container-fluid {
padding: 0 0.5rem;
}
.notification-text {
font-size: 0.8rem;
}
.top-notification-bar .bi-megaphone-fill {
font-size: 0.875rem;
}
.btn-close-notification {
right: 0.5rem;
padding: 0.25rem;
}
.notification-link {
font-size: 0.8rem;
}
}
/* Pantallas muy pequeñas */
@media (max-width: 480px) {
.top-notification-bar {
font-size: 0.75rem;
}
.notification-text {
font-size: 0.75rem;
}
.text-highlight {
margin-right: 0.15rem;
}
.notification-link {
font-size: 0.75rem;
margin-left: 0.25rem !important;
}
}
/* ============================================
ACCESSIBILITY
============================================ */
/* Modo de alto contraste */
@media (prefers-contrast: high) {
.top-notification-bar {
border-bottom: 2px solid #ffffff;
}
.text-highlight,
.notification-link {
color: #ffffff;
font-weight: 700;
}
}
/* Reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
.top-notification-bar {
animation: none;
}
.btn-close-notification:hover {
transform: none;
}
}
/* ============================================
PRINT STYLES
============================================ */
@media print {
.top-notification-bar {
display: none;
}
}