.category-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.category-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #eee;
}

.category-title {
    color: var(--category-color, #333);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.category-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

.category-posts {
    display: grid;
    gap: 2rem;
}

.category-post {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.category-post:hover {
    transform: translateY(-3px);
}

.post-title {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.post-meta {
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.post-excerpt {
    color: #444;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.read-more {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--category-color, #007bff);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background-color: var(--category-hover-color, #0056b3);
}


.blog-homepage {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

.blog-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 2rem;
}

.blog-sidebar {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    height: fit-content;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section h3 {
    color: #444;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
}

/* Versión sidebar del listado */
.sidebar-list .blog-post {
    background: none;
    box-shadow: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.sidebar-list .post-title {
    font-size: 1rem;
}

/* Estilos base */
.blog-homepage-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
}

.blog-content-wrapper {
    display: flex;
    gap: 2rem;
}

.main-content {
    flex: 1;
    min-width: 0; /* Evita problemas de overflow */
}

.blog-sidebar {
    width: 320px;
    transition: all 0.3s ease;
}

/* Header móvil */
.mobile-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.sidebar-toggle {
    background: #007bff;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
    display: none;
}

/* Estilos para el listado de posts responsivo */
.blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Sidebar */
.sidebar-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.sidebar-section h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #444;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* Media Queries para responsividad */
@media (max-width: 1024px) {
    .blog-content-wrapper {
        flex-direction: column;
    }
    
    .blog-sidebar {
        width: 100%;
        order: -1;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .mobile-header {
        display: flex;
    }
    
    .desktop-title {
        display: none;
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .blog-sidebar {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        max-width: 320px;
        background: white;
        z-index: 1000;
        padding: 1rem;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        overflow-y: auto;
    }
    
    .blog-sidebar.active {
        right: 0;
    }
    
    .blog-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .blog-homepage-container {
        padding: 0.5rem;
    }
    
    .sidebar-section {
        padding: 1rem;
    }
}


/* Estilos base */
.single-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
    line-height: 1.6;
    color: #333;
}

.breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    color: #666;
}

.breadcrumb a {
    color: #0066cc;
    text-decoration: none;
}

.post-header {
    margin-bottom: 2rem;
}

.post-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.post-featured-image {
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.post-content {
    font-size: 1.1rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    margin: 1rem auto;
    display: block;
}

.post-tags {
    margin: 2rem 0;
}

.post-category-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.nav-previous, .nav-next {
    max-width: 45%;
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.post-comments {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

/* Responsive */
@media (max-width: 768px) {
    .single-post {
        padding: 0.5rem;
    }
    
    .post-title {
        font-size: 1.8rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-previous, .nav-next {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .post-title {
        font-size: 1.5rem;
    }
    
    .post-content {
        font-size: 1rem;
    }
}