/* =========================================
   CSS EXCLUSIVO PARA EL BLOG Y ARTÍCULOS
   ========================================= */

/* Hero del Blog */
.blog-hero { background-color: var(--primary-dark); color: var(--white); padding: 100px 0 60px 0; }
.blog-hero h1 { font-size: 3rem; font-weight: 800; margin-bottom: 20px; }

/* Grid del Blog */
.blog-main-content { padding: 80px 0; background-color: var(--secondary-light); }
.blog-grid-page { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 40px; }

.post-card { background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); transition: var(--transition); border: 1px solid #e5e7eb; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-5px); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); }
.post-img-wrapper { position: relative; height: 220px; overflow: hidden; }
.post-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.post-card:hover .post-img { transform: scale(1.05); }
.post-category { position: absolute; top: 15px; left: 15px; background-color: var(--accent); color: var(--white); padding: 5px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; }

.post-content { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.post-date { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 10px; display: block; }
.post-content h3 { font-size: 1.3rem; margin-bottom: 15px; line-height: 1.3; }
.post-content h3 a { color: var(--primary-dark); text-decoration: none; }
.post-content h3 a:hover { color: var(--accent); }
.post-content p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 20px; flex-grow: 1; }

/* Página del Artículo Individual */
.single-article-page { padding: 60px 0 100px 0; background-color: var(--white); }
.article-container { max-width: 800px; /* Más estrecho para facilitar la lectura */ margin: 0 auto; }
.article-header { text-align: center; margin-bottom: 40px; }
.post-category.large { position: static; display: inline-block; margin-bottom: 20px; font-size: 0.9rem; }
.article-header h1 { font-size: 2.8rem; color: var(--primary-dark); line-height: 1.2; margin-bottom: 20px; }
.article-meta { color: var(--text-muted); font-size: 0.95rem; display: flex; justify-content: center; gap: 20px; }

.article-featured-image { margin-bottom: 50px; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.article-featured-image img { width: 100%; height: auto; display: block; }

/* Estilos del texto redactado en la intranet */
.article-body { font-size: 1.15rem; line-height: 1.8; color: #374151; }
.article-body h2 { font-size: 2rem; color: var(--primary-dark); margin: 40px 0 20px 0; }
.article-body h3 { font-size: 1.5rem; color: var(--primary-dark); margin: 30px 0 15px 0; }
.article-body p { margin-bottom: 25px; }
.article-body ul, .article-body ol { margin-bottom: 25px; padding-left: 25px; }
.article-body li { margin-bottom: 10px; }
.article-body strong { color: var(--primary-dark); }
.article-body blockquote { border-left: 5px solid var(--accent); padding: 15px 20px; background-color: var(--secondary-light); font-style: italic; margin-bottom: 25px; border-radius: 0 8px 8px 0; }

.article-footer { margin-top: 60px; padding-top: 30px; border-top: 1px solid #e5e7eb; text-align: center; }

@media (max-width: 768px) {
    .article-header h1 { font-size: 2rem; }
    .article-meta { flex-direction: column; gap: 5px; }
}