From c23ed7603468d718c6040562b97e76871999907d Mon Sep 17 00:00:00 2001 From: FrankZamora Date: Sat, 8 Nov 2025 14:24:31 -0600 Subject: [PATCH] Fix tablas APU: Corregir TODOS los estilos vs template MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PROBLEMA: - custom-style.css tenía código DUPLICADO de tablas APU (137 líneas) - tables-apu.css tenía 5 diferencias críticas vs template - Usuario reportó que tablas en staging NO coinciden con template SOLUCIÓN ARQUITECTURAL: ✅ Eliminar TODO código .analisis de custom-style.css (líneas 160-282 + responsive 914-924) - Principio: cada componente debe tener su PROPIO archivo CSS - custom-style.css NO debe tener estilos de componentes específicos CORRECCIONES EN TABLES-APU.CSS: 1. ✅ box-shadow: 0 2px 8px → 0 4px 16px (línea 25) - Template usa blur radius 16px, no 8px 2. ✅ Section header: ELIMINAR text-transform: uppercase (línea 163) - Template usa textTransform: "none" 3. ✅ Section header: ELIMINAR letter-spacing: 0.5px (línea 165) - Template usa letterSpacing: "normal" 4. ✅ Section header: ELIMINAR font-size: 0.95em (línea 164) - Template no reduce el tamaño de fuente 5. ✅ Columnas numéricas: AGREGAR color: #1e3a5f (línea 139) - Template computed muestra rgb(30, 58, 95) explícito VERIFICACIÓN: - ✅ style.css: NO tiene reglas .analisis - ✅ responsive.css: Solo regla genérica table (max-width: 575.98px) - ✅ utilities.css: Solo clases d-table de Bootstrap - ✅ animations.css: NO tiene reglas table - ✅ Orden de carga: custom-style (p11) → tables-apu (p15) ✓ COMPARACIÓN CON TEMPLATE: Extraído computed styles del template index.html usando Playwright: - table: boxShadow "0px 4px 16px", borderRadius "8px" ✓ - header: gradient #1e3a5f→#2c5282, padding 16px ✓ - col1-2: Poppins, left align ✓ - col3: center, color #6c757d ✓ - col4-6: Courier New monospace, right, color #1e3a5f ✓ - section-header: color #1e3a5f, fontWeight 600, textTransform "none" ✓ - subtotal: bg rgba(255,133,0,0.1), color #FF8600 ✓ - total: gradient, color white, fontSize 1.1rem/1.25rem ✓ RESULTADO: - 137 líneas eliminadas (código duplicado en custom-style.css) - 5 correcciones críticas en tables-apu.css - Arquitectura CSS correcta: cada componente en su archivo 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .../apus-theme/assets/css/custom-style.css | 137 +----------------- .../apus-theme/assets/css/tables-apu.css | 6 +- 2 files changed, 4 insertions(+), 139 deletions(-) diff --git a/wp-content/themes/apus-theme/assets/css/custom-style.css b/wp-content/themes/apus-theme/assets/css/custom-style.css index eb7bbcbd..338b433c 100644 --- a/wp-content/themes/apus-theme/assets/css/custom-style.css +++ b/wp-content/themes/apus-theme/assets/css/custom-style.css @@ -157,133 +157,10 @@ body { color: var(--color-orange-hover); } -/* ======================================== - PRICING TABLES (APU) -======================================== */ - -.analisis { - margin: 2rem 0; - overflow-x: auto; -} - -.analisis table { - width: 100%; - border-collapse: collapse; - background: #ffffff; - box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08); - border-radius: 8px; - overflow: hidden; - border: none; - border-spacing: 0; -} - -.analisis table td, -.analisis table tbody, -.analisis table tr { - border: none !important; -} - -.analisis table td:nth-child(1) { width: 150px; } -.analisis table td:nth-child(2) { width: auto; min-width: 300px; } -.analisis table td:nth-child(3) { width: 80px; } -.analisis table td:nth-child(4) { width: 110px; } -.analisis table td:nth-child(5) { width: 120px; } -.analisis table td:nth-child(6) { width: 120px; } - -.analisis table thead tr th { - background: linear-gradient(135deg, var(--color-navy-primary) 0%, var(--color-navy-light) 100%); - color: #ffffff; - font-weight: 600; - text-align: center !important; - padding: 1rem; - border: none !important; -} - -.analisis table tbody td { - padding: 0.75rem 1rem; - border: none !important; - color: var(--color-neutral-600); -} - -.analisis table tbody tr:nth-child(even):not(.section-header):not(.subtotal-row):not(.total-row) { - background-color: var(--color-neutral-50); -} - -.analisis table tbody tr:nth-child(odd):not(.section-header):not(.subtotal-row):not(.total-row) { - background-color: #ffffff; -} - -.analisis table td:nth-child(1), -.analisis table td:nth-child(2) { - text-align: left; -} - -.analisis table td:nth-child(3), -.analisis table td.c3 { - text-align: center !important; - color: var(--color-neutral-700); -} - -.analisis table td:nth-child(4), -.analisis table td.c4, -.analisis table td:nth-child(5), -.analisis table td.c5, -.analisis table td:nth-child(6), -.analisis table td.c6 { - text-align: right !important; - font-family: 'Courier New', monospace; - font-weight: 500; - color: var(--color-navy-primary); -} - -.analisis table tr.section-header { - background-color: var(--color-neutral-100) !important; -} - -.analisis table tr.section-header td { - font-weight: 600; - color: var(--color-navy-primary); - padding: 0.75rem 1rem; - border: none !important; -} - -.analisis table tr.subtotal-row { - background-color: rgba(255, 133, 0, 0.1) !important; -} - -.analisis table tr.subtotal-row td { - font-weight: 700; - color: var(--color-orange-primary); - padding: 0.875rem 1rem; - border: none !important; -} - -.analisis table tr.subtotal-row td.c6 { - font-size: 1.05rem; - color: var(--color-orange-primary); -} - -.analisis table tr.total-row { - background: linear-gradient(135deg, var(--color-navy-primary) 0%, var(--color-navy-light) 100%) !important; -} - -.analisis table tr.total-row td { - color: #ffffff !important; - font-weight: 700; - font-size: 1.1rem; - padding: 1.125rem 1rem !important; - border: none !important; -} - -.analisis table tr.total-row td.c6 { - font-size: 1.25rem; - letter-spacing: 0.5px; - color: #ffffff !important; -} - /* ======================================== GENERIC TABLES - 10 DIFFERENT STYLES ======================================== */ +/* NOTA: Estilos de tablas APU movidos a tables-apu.css (Arquitectura correcta) */ /* Base styles for all generic tables */ .post-content table:not(.analisis table) { @@ -911,17 +788,7 @@ footer .btn-primary:hover { } @media (max-width: 768px) { - .analisis { - font-size: 0.85rem; - } - - .analisis table td { - padding: 0.5rem !important; - } - - .analisis table tr.total-row td { - font-size: 1rem !important; - } + /* NOTA: Estilos responsive de tablas APU movidos a tables-apu.css */ .btn-lets-talk { width: 100%; diff --git a/wp-content/themes/apus-theme/assets/css/tables-apu.css b/wp-content/themes/apus-theme/assets/css/tables-apu.css index 33705468..91f9c659 100644 --- a/wp-content/themes/apus-theme/assets/css/tables-apu.css +++ b/wp-content/themes/apus-theme/assets/css/tables-apu.css @@ -22,7 +22,7 @@ width: 100%; border-collapse: collapse; background: #ffffff; - box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); + box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08); border-radius: 8px; border: none; border-spacing: 0; @@ -136,6 +136,7 @@ text-align: right !important; font-family: 'Courier New', Courier, monospace; font-weight: 500; + color: #1e3a5f; } /* ======================================== @@ -160,9 +161,6 @@ color: #1e3a5f; padding: 0.75rem 1rem; border: none !important; - text-transform: uppercase; - font-size: 0.95em; - letter-spacing: 0.5px; } /* ========================================