Agregar estructura completa del tema APUS con Bootstrap 5 y optimizaciones de rendimiento

Se implementa tema WordPress personalizado para Análisis de Precios Unitarios con funcionalidades avanzadas:
- Sistema de templates (front-page, single, archive, page, 404, search)
- Integración de Bootstrap 5.3.8 con estructura modular de assets
- Panel de opciones del tema con Customizer API
- Optimizaciones de rendimiento (Critical CSS, Image Optimization, Performance)
- Funcionalidades SEO y compatibilidad con Rank Math
- Sistema de posts relacionados y tabla de contenidos
- Badge de categorías y manejo de AdSense diferido
- Tipografías Google Fonts configurables
- Documentación completa del tema y guías de uso

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

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
FrankZamora
2025-11-04 09:31:47 -06:00
parent 12285bec3c
commit 7ba9080f57
67 changed files with 21825 additions and 0 deletions

View File

@@ -0,0 +1,460 @@
/**
* Related Posts Styles
*
* Responsive grid layout with Bootstrap 5 integration
* Supports cards with and without images
*
* @package Apus_Theme
* @since 1.0.0
*/
/* ========================================
Related Posts Section
======================================== */
.related-posts-section {
margin-top: 4rem;
margin-bottom: 3rem;
padding-top: 3rem;
border-top: 2px solid #e9ecef;
}
.related-posts-container {
width: 100%;
}
.related-posts-title {
font-size: 1.75rem;
font-weight: 700;
color: #212529;
margin-bottom: 2rem;
text-align: left;
position: relative;
padding-bottom: 0.75rem;
}
.related-posts-title::after {
content: '';
position: absolute;
left: 0;
bottom: 0;
width: 60px;
height: 3px;
background: linear-gradient(90deg, #1a73e8 0%, #4285f4 100%);
border-radius: 2px;
}
/* ========================================
Related Post Card
======================================== */
.related-post-card {
display: flex;
flex-direction: column;
height: 100%;
background: #ffffff;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
}
.related-post-card:hover {
transform: translateY(-4px);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.related-post-link {
display: flex;
flex-direction: column;
height: 100%;
text-decoration: none;
color: inherit;
}
.related-post-link:hover {
text-decoration: none;
}
/* ========================================
Card with Thumbnail
======================================== */
.related-post-thumbnail {
position: relative;
width: 100%;
padding-bottom: 75%; /* 4:3 aspect ratio */
overflow: hidden;
background: #f8f9fa;
}
.related-post-thumbnail img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.related-post-card:hover .related-post-thumbnail img {
transform: scale(1.05);
}
/* ========================================
Card without Image (Color Background)
======================================== */
.related-post-no-image {
position: relative;
width: 100%;
padding-bottom: 75%; /* 4:3 aspect ratio */
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
}
.related-post-no-image-content {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 1.5rem;
text-align: center;
}
.related-post-no-image-title {
font-size: 1.25rem;
font-weight: 700;
color: #ffffff;
margin: 0;
line-height: 1.4;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
/* ========================================
Category Badge
======================================== */
.related-post-category {
position: absolute;
top: 12px;
left: 12px;
display: inline-block;
padding: 0.375rem 0.875rem;
font-size: 0.75rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
background: rgba(255, 255, 255, 0.95);
color: #212529;
border-radius: 6px;
z-index: 10;
transition: all 0.2s ease;
backdrop-filter: blur(4px);
}
.related-post-category.no-image {
background: rgba(255, 255, 255, 0.2);
color: #ffffff;
border: 1px solid rgba(255, 255, 255, 0.3);
backdrop-filter: blur(8px);
}
.related-post-card:hover .related-post-category {
background: rgba(26, 115, 232, 0.95);
color: #ffffff;
}
.related-post-card:hover .related-post-category.no-image {
background: rgba(255, 255, 255, 0.95);
color: #212529;
border-color: transparent;
}
/* ========================================
Card Content
======================================== */
.related-post-content {
padding: 1.25rem;
flex: 1;
display: flex;
flex-direction: column;
}
.related-post-title {
font-size: 1.125rem;
font-weight: 600;
color: #212529;
margin: 0 0 0.75rem 0;
line-height: 1.4;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
transition: color 0.2s ease;
}
.related-post-card:hover .related-post-title {
color: #1a73e8;
}
.related-post-excerpt {
font-size: 0.9375rem;
color: #6c757d;
line-height: 1.6;
margin-bottom: 0.75rem;
flex: 1;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}
.related-post-meta {
display: flex;
align-items: center;
gap: 0.5rem;
margin-top: auto;
padding-top: 0.75rem;
border-top: 1px solid #e9ecef;
}
.related-post-date {
font-size: 0.8125rem;
color: #6c757d;
font-weight: 500;
}
/* ========================================
Cards without Thumbnail - Simplified Layout
======================================== */
.related-post-card.no-thumbnail .related-post-content {
padding: 1.5rem 1.25rem 1.25rem;
}
/* ========================================
Responsive Adjustments
======================================== */
/* Tablets */
@media (max-width: 991.98px) {
.related-posts-section {
margin-top: 3rem;
padding-top: 2.5rem;
}
.related-posts-title {
font-size: 1.5rem;
margin-bottom: 1.5rem;
}
.related-post-no-image-title {
font-size: 1.125rem;
-webkit-line-clamp: 4;
}
}
/* Mobile */
@media (max-width: 767.98px) {
.related-posts-section {
margin-top: 2.5rem;
padding-top: 2rem;
}
.related-posts-title {
font-size: 1.375rem;
margin-bottom: 1.25rem;
}
.related-post-card {
margin-bottom: 0; /* Bootstrap's g-4 handles gaps */
}
.related-post-thumbnail {
padding-bottom: 60%; /* Shorter aspect ratio on mobile */
}
.related-post-no-image {
padding-bottom: 60%;
}
.related-post-no-image-title {
font-size: 1rem;
}
.related-post-title {
font-size: 1rem;
}
.related-post-excerpt {
font-size: 0.875rem;
}
.related-post-content {
padding: 1rem;
}
.related-post-card.no-thumbnail .related-post-content {
padding: 1.25rem 1rem 1rem;
}
}
/* Small mobile */
@media (max-width: 575.98px) {
.related-posts-title {
font-size: 1.25rem;
}
.related-post-category {
font-size: 0.6875rem;
padding: 0.25rem 0.625rem;
}
.related-post-no-image-content {
padding: 1rem;
}
}
/* ========================================
Print Styles
======================================== */
@media print {
.related-posts-section {
page-break-inside: avoid;
margin-top: 2rem;
padding-top: 1.5rem;
border-top: 1px solid #000;
}
.related-post-card {
page-break-inside: avoid;
box-shadow: none;
border: 1px solid #ddd;
}
.related-post-card:hover {
transform: none;
}
.related-post-thumbnail img,
.related-post-no-image {
display: none;
}
.related-post-category {
background: transparent;
border: 1px solid #000;
color: #000;
position: static;
display: inline-block;
margin-bottom: 0.5rem;
}
.related-post-content {
padding: 1rem;
}
.related-post-title {
color: #000;
}
.related-post-excerpt {
color: #333;
}
}
/* ========================================
Dark Mode Support (Optional)
======================================== */
@media (prefers-color-scheme: dark) {
.related-posts-section {
border-top-color: #343a40;
}
.related-posts-title {
color: #f8f9fa;
}
.related-post-card {
background: #212529;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.related-post-card:hover {
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.related-post-title {
color: #f8f9fa;
}
.related-post-card:hover .related-post-title {
color: #4285f4;
}
.related-post-excerpt {
color: #adb5bd;
}
.related-post-meta {
border-top-color: #343a40;
}
.related-post-date {
color: #adb5bd;
}
.related-post-category {
background: rgba(33, 37, 41, 0.95);
color: #f8f9fa;
}
}
/* ========================================
Accessibility
======================================== */
.related-post-link:focus {
outline: 2px solid #1a73e8;
outline-offset: 2px;
}
.related-post-link:focus-visible {
outline: 2px solid #1a73e8;
outline-offset: 2px;
}
/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
.related-post-card,
.related-post-thumbnail img,
.related-post-category,
.related-post-title {
transition: none;
}
.related-post-card:hover {
transform: none;
}
.related-post-card:hover .related-post-thumbnail img {
transform: none;
}
}