/* ============================================
   ESTILOS PARA BLOG DE FACTORA
   ============================================ */

/* Hero del Blog */
.blog-hero {
    background: linear-gradient(135deg, var(--factora-blue) 0%, #0d265c 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
}

.blog-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.blog-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Grid de artículos */
.blog-grid {
    padding: 60px 0;
    background: var(--factora-bg-light);
}

.blog-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

/* Tarjeta de artículo */
.article-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.article-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--factora-blue), #1a3a7a);
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-image i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
}

.article-content {
    padding: 24px;
}

.article-category {
    display: inline-block;
    background: rgba(255, 80, 69, 0.1);
    color: var(--factora-red);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.article-title {
    font-size: 1.4rem;
    color: var(--factora-blue);
    margin-bottom: 12px;
    line-height: 1.3;
}

.article-title a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

.article-title a:hover {
    color: var(--factora-red);
}

.article-excerpt {
    color: var(--factora-text-gray);
    margin-bottom: 16px;
    line-height: 1.6;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #eef2f6;
    font-size: 0.85rem;
    color: #8a99b0;
}

.article-date i,
.article-readtime i {
    margin-right: 6px;
}

/* Sidebar */
.blog-sidebar {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.sidebar-widget {
    background: white;
    border-radius: 24px;
    padding: 28px;
    box-shadow: var(--shadow-md);
}

.sidebar-widget h3 {
    font-size: 1.3rem;
    color: var(--factora-blue);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--factora-red);
    display: inline-block;
}

.categories-list {
    list-style: none;
}

.categories-list li {
    margin-bottom: 12px;
}

.categories-list a {
    display: flex;
    justify-content: space-between;
    color: var(--factora-text-gray);
    text-decoration: none;
    transition: var(--transition-fast);
    padding: 8px 0;
}

.categories-list a:hover {
    color: var(--factora-red);
    transform: translateX(5px);
}

.categories-list span {
    color: var(--factora-red);
    font-weight: 600;
}

.recent-posts-list {
    list-style: none;
}

.recent-posts-list li {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eef2f6;
}

.recent-posts-list li:last-child {
    border-bottom: none;
}

.recent-posts-list a {
    display: block;
    color: var(--factora-blue);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    margin-bottom: 6px;
}

.recent-posts-list a:hover {
    color: var(--factora-red);
}

.recent-date {
    font-size: 0.75rem;
    color: #8a99b0;
}

/* Newsletter */
.newsletter-widget {
    background: linear-gradient(135deg, var(--factora-blue), #0d265c);
    color: white;
}

.newsletter-widget h3 {
    color: white;
    border-bottom-color: var(--factora-red);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.newsletter-form input {
    padding: 14px 18px;
    border: none;
    border-radius: 60px;
    font-size: 1rem;
    outline: none;
}

.newsletter-form button {
    background: var(--factora-red);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 60px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
}

.newsletter-form button:hover {
    background: #e03c32;
    transform: translateY(-2px);
}

/* Artículo individual */
.article-single {
    padding: 60px 0;
    background: var(--factora-bg-light);
}

.article-single-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 32px;
}

.article-single-header {
    text-align: center;
    margin-bottom: 40px;
}

.article-single-header h1 {
    font-size: 2.5rem;
    color: var(--factora-blue);
    margin: 20px 0;
}

.article-single-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    color: #8a99b0;
    font-size: 0.9rem;
}

.article-single-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 24px;
    margin-bottom: 40px;
    background: linear-gradient(135deg, var(--factora-blue), #1a3a7a);
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-single-image i {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.2);
}

.article-single-content {
    background: white;
    border-radius: 32px;
    padding: 48px;
    box-shadow: var(--shadow-md);
}

.article-single-content h2 {
    color: var(--factora-blue);
    margin: 32px 0 16px;
}

.article-single-content h3 {
    color: var(--factora-blue);
    margin: 24px 0 12px;
}

.article-single-content p {
    margin-bottom: 20px;
    line-height: 1.7;
    color: #2c3e50;
}

.article-single-content ul,
.article-single-content ol {
    margin: 20px 0 20px 24px;
}

.article-single-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.article-single-content blockquote {
    border-left: 4px solid var(--factora-red);
    padding: 20px 24px;
    background: var(--factora-bg-light);
    border-radius: 16px;
    margin: 24px 0;
    font-style: italic;
    color: var(--factora-blue);
}

/* Paginación */
.pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 48px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    color: var(--factora-blue);
    font-weight: 500;
    transition: var(--transition-fast);
}

.pagination a:hover,
.pagination .active {
    background: var(--factora-red);
    color: white;
}

/* Responsive Blog */
@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .article-single-header h1 {
        font-size: 1.8rem;
    }
    
    .article-single-image {
        height: 250px;
    }
    
    .article-single-content {
        padding: 24px;
    }
}