
/* ==================== BLOG STYLES ==================== */
/* Añadir estos estilos al final de styles.css */

/* Blog Hero Section */
.blog-hero-section {
    padding: 160px 24px 80px;
    background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
}

.blog-hero-container {
    max-width: 1100px;
    margin: 0 auto;
}

.blog-hero-header {
    text-align: center;
    margin-bottom: 60px;
}

.blog-hero-title {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #000;
}

.blog-hero-subtitle {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Featured Article Card */
.blog-featured-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-featured-card:hover {
    border-color: #ccc;
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.blog-featured-image {
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.blog-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-featured-card:hover .blog-featured-image img {
    transform: scale(1.03);
}

.blog-featured-content {
    padding: 48px 48px 48px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-category-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 14px;
    background: #f5f5f5;
    border-radius: 100px;
    margin-bottom: 20px;
    width: fit-content;
}

.blog-featured-title {
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: #000;
    margin-bottom: 16px;
}

.blog-featured-desc {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 24px;
}

.blog-featured-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.blog-date {
    font-size: 14px;
    color: #999;
}

.blog-read-link {
    font-size: 14px;
    font-weight: 500;
    color: #000;
}

/* Blog Category Hero */
.blog-category-hero {
    padding: 160px 24px 60px;
    background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
}

.blog-category-container {
    max-width: 1100px;
    margin: 0 auto;
}

.blog-category-title {
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 600;
    letter-spacing: -0.035em;
    color: #000;
    margin-top: 16px;
}

.blog-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    margin-bottom: 24px;
    transition: color 0.2s;
}

.blog-back-link:hover {
    color: #000;
}

.blog-back-link svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* Blog Listing Section */
.blog-listing-section {
    padding: 60px 24px 120px;
    background: #fff;
}

.blog-listing-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 60px;
}

/* Blog Sidebar */
.blog-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.blog-sidebar-title {
    font-size: 12px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}

.blog-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.blog-sidebar-link {
    display: block;
    font-size: 15px;
    color: #666;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.2s;
}

.blog-sidebar-link:hover {
    color: #000;
    background: #f5f5f5;
}

.blog-sidebar-link.active {
    color: #000;
    background: #f5f5f5;
    font-weight: 500;
}

/* Blog Articles Grid */
.blog-articles-wrapper {
    flex: 1;
}

.blog-section-title {
    font-size: 24px;
    font-weight: 600;
    color: #000;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

/* Blog Card */
.blog-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    border-color: #ccc;
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}

.blog-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-category {
    font-size: 11px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.blog-card-title {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    line-height: 1.3;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.blog-card-desc {
    font-size: 15px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.blog-card-link {
    font-size: 14px;
    font-weight: 500;
    color: #000;
}

/* Blog Pagination */
.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.blog-pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #000;
    text-decoration: none;
    padding: 12px 20px;
    background: #f5f5f5;
    border-radius: 8px;
    transition: all 0.2s;
}

.blog-pagination-btn:hover {
    background: #eee;
}

.blog-pagination-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.blog-pagination-current {
    font-size: 14px;
    color: #666;
}

/* Single Post Section */
.blog-post-section {
    padding: 140px 24px 80px;
    background: #fff;
}

.blog-post-container {
    max-width: 800px;
    margin: 0 auto;
}

.blog-post-header {
    text-align: center;
    margin-bottom: 48px;
}

.blog-post-header .blog-back-link {
    margin-bottom: 32px;
}

.blog-post-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.15;
    color: #000;
    margin-bottom: 20px;
}

.blog-post-excerpt {
    font-size: 20px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 24px;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.blog-post-image {
    margin-bottom: 48px;
    border-radius: 16px;
    overflow: hidden;
}

.blog-post-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Blog Post Content Styling */
.blog-post-content {
    font-size: 17px;
    color: #333;
    line-height: 1.8;
}

.blog-post-content h1,
.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4 {
    color: #000;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-top: 48px;
    margin-bottom: 20px;
}

.blog-post-content h2 {
    font-size: 28px;
}

.blog-post-content h3 {
    font-size: 22px;
}

.blog-post-content p {
    margin-bottom: 24px;
}

.blog-post-content a {
    color: #000;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.blog-post-content a:hover {
    text-decoration-color: #999;
}

.blog-post-content ul,
.blog-post-content ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.blog-post-content li {
    margin-bottom: 12px;
}

.blog-post-content blockquote {
    margin: 32px 0;
    padding: 24px 32px;
    background: #fafafa;
    border-left: 4px solid #000;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #555;
}

.blog-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 32px 0;
}

.blog-post-content pre,
.blog-post-content code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    background: #f5f5f5;
    border-radius: 6px;
}

.blog-post-content code {
    padding: 2px 6px;
    font-size: 0.9em;
}

.blog-post-content pre {
    padding: 20px 24px;
    overflow-x: auto;
    margin: 24px 0;
}

.blog-post-content pre code {
    padding: 0;
    background: none;
}

.blog-post-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
    text-align: center;
}

/* Blog CTA Section */
.blog-cta-section {
    padding: 100px 24px;
    background: #000;
    text-align: center;
}

.blog-cta-container {
    max-width: 600px;
    margin: 0 auto;
}

.blog-cta-title {
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 16px;
}

.blog-cta-subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 40px;
}

.blog-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.blog-cta-buttons .btn-primary {
    background: #fff;
    color: #000;
}

.blog-cta-buttons .btn-primary:hover {
    background: #f5f5f5;
}

.blog-cta-buttons .btn-secondary {
    border-color: rgba(255,255,255,0.3);
    color: #fff;
}

.blog-cta-buttons .btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 991px) {
    .blog-featured-card {
        grid-template-columns: 1fr;
    }

    .blog-featured-image {
        min-height: 280px;
    }

    .blog-featured-content {
        padding: 32px;
    }

    .blog-listing-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .blog-sidebar {
        position: static;
        padding-bottom: 32px;
        border-bottom: 1px solid #eee;
    }

    .blog-sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .blog-sidebar-link {
        padding: 8px 14px;
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    .blog-hero-section {
        padding: 120px 20px 60px;
    }

    .blog-featured-image {
        min-height: 220px;
    }

    .blog-featured-content {
        padding: 24px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .blog-card-content {
        padding: 20px;
    }

    .blog-post-section {
        padding: 120px 20px 60px;
    }

    .blog-pagination {
        flex-direction: column;
        gap: 16px;
    }

    .blog-cta-buttons {
        flex-direction: column;
    }

    .blog-cta-buttons .btn-primary,
    .blog-cta-buttons .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}