/* Blog Single Page Styles */

/* Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    z-index: 1000;
    transition: width 0.1s ease;
}

/* Blog Post Header */
.blog-post-single-header {
    padding: 100px 20px 80px;
    margin-bottom: 0;
}

.blog-post-single-header .container {
    max-width: 900px;
    text-align: center;
}

.blog-post-wrapper {
    background: #f7fafc;
}

.blog-post-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 50px;
    align-items: start;
}

.blog-post-main {
    max-width: 800px;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 15px 0;
}

.breadcrumbs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumbs-list {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.85rem;
}

.breadcrumbs-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #718096;
}

.breadcrumbs-list a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-base);
}

.breadcrumbs-list a:hover {
    color: var(--color-primary-dark);
}

.breadcrumb-separator {
    color: #cbd5e0;
}

.blog-post-back {
    margin-bottom: 30px;
}

.blog-post-back a {
    color: #4a5568;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.blog-post-back a:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
    transform: translateX(-4px);
}

.blog-post-back svg {
    width: 16px;
    height: 16px;
}

/* Sidebar */
.blog-post-sidebar {
    position: sticky;
    top: 80px;
}

.sidebar-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.sidebar-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 20px 0;
}

/* Sidebar Promo Boxes */
.sidebar-promo-box {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sidebar-promo-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.sidebar-promo-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: white;
}

.sidebar-promo-icon svg {
    width: 28px;
    height: 28px;
}

.nomina-box .sidebar-promo-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.remunerada-box .sidebar-promo-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.sidebar-promo-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #2d3748;
}

.sidebar-promo-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nomina-box .sidebar-promo-title a:hover {
    color: #10b981;
}

.remunerada-box .sidebar-promo-title a:hover {
    color: var(--color-primary);
}

.sidebar-promo-description {
    font-size: 0.9rem;
    color: #718096;
    line-height: 1.5;
    margin: 0 0 15px 0;
}

.sidebar-promo-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nomina-box .sidebar-promo-link {
    color: #10b981;
}

.nomina-box .sidebar-promo-link:hover {
    color: #059669;
    gap: 8px;
}

.remunerada-box .sidebar-promo-link {
    color: var(--color-primary);
}

.remunerada-box .sidebar-promo-link:hover {
    color: var(--color-primary-dark);
    gap: 8px;
}

.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.share-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
    background: white;
    color: #4a5568;
}

.share-button:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.share-button svg {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

.share-button:hover svg {
    opacity: 1;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin: 10px 0;
}

.toc-list a {
    color: #4a5568;
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.toc-list a:hover {
    background: var(--color-bg-lighter);
    border-left-color: var(--color-primary);
    color: var(--color-primary);
}

/* Blog Post Meta */
.blog-post-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: white;
    margin: 0 0 15px 0;
    line-height: 1.25;
}

.blog-post-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.6;
    max-width: 800px;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    color: #718096;
}

.blog-post-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.blog-post-meta-item svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

/* Tags inline después del contenido */
.blog-post-tags-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

.blog-post-tag {
    background: #f7fafc;
    color: #4a5568;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.blog-post-tag:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
    color: #2d3748;
}

/* Content Styles */
.blog-post-content {
    background: white;
    border-radius: 12px;
    padding: 50px;
    border: 1px solid #e2e8f0;
    line-height: 1.85;
    color: #2d3748;
    font-size: 1.08rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

/* Drop cap deshabilitado ya que la meta va primero */

.blog-post-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin: 45px 0 20px 0;
    line-height: 1.3;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.blog-post-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin: 35px 0 15px 0;
    line-height: 1.4;
}

.blog-post-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #4a5568;
    margin: 30px 0 12px 0;
}

.blog-post-content p {
    margin: 0 0 20px 0;
}

.blog-post-content ul,
.blog-post-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.blog-post-content li {
    margin: 10px 0;
}

.blog-post-content a {
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: var(--border-width-thin) solid transparent;
    transition: border-color var(--transition-base);
}

.blog-post-content a:hover {
    border-bottom-color: var(--color-primary);
}

.blog-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.blog-post-content blockquote {
    border-left: 4px solid var(--color-primary);
    padding: var(--space-lg) 25px;
    margin: 30px 0;
    background: var(--color-bg-lighter);
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
    font-style: italic;
    color: var(--color-text-tertiary);
}

.blog-post-content code {
    background: #edf2f7;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'Courier New', monospace;
    color: #e53e3e;
}

.blog-post-content pre {
    background: #1a202c;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 25px 0;
}

.blog-post-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.blog-post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.blog-post-content table th {
    background: #f7fafc;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #2d3748;
    border-bottom: 2px solid #e2e8f0;
}

.blog-post-content table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e2e8f0;
}

.blog-post-content table tr:last-child td {
    border-bottom: none;
}

/* Content Disclaimer - Less prominent for SEO */
.content-disclaimer {
    margin-top: 50px;
    padding: 15px 20px;
    background: #f7fafc;
    border-left: 3px solid #cbd5e0;
    border-radius: 4px;
    font-size: 0.75rem;
    line-height: 1.5;
    color: #718096;
    opacity: 0.8;
}

.content-disclaimer small {
    display: block;
    font-size: inherit;
    font-weight: 400;
}

.content-disclaimer strong {
    font-weight: 500;
    color: #718096;
}

/* Related Posts Section */
.related-posts-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d3748;
    padding-bottom: 12px;
    border-bottom: 2px solid #cbd5e0;
    display: inline-block;
    width: auto;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 25px;
}

/* Post Navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 50px;
}

.nav-post {
    background: white;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.nav-post:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.nav-post-label {
    font-size: 0.8rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    font-weight: 600;
}

.nav-post-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    line-height: 1.4;
}

.nav-post-prev {
    text-align: left;
}

.nav-post-next {
    text-align: right;
}

/* Responsive */
@media (max-width: 992px) {
    .blog-post-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .blog-post-sidebar {
        position: static;
        max-width: 600px;
        margin: 0 auto;
    }

    .share-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .share-button {
        flex: 1;
        min-width: 150px;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .blog-post-single-header {
        padding: 60px 20px 50px;
    }

    .blog-post-title {
        font-size: 2rem;
        line-height: 1.3;
    }

    .blog-post-subtitle {
        font-size: 1rem;
    }

    .blog-post-container {
        padding: 20px 15px;
    }

    .breadcrumbs-list {
        font-size: 0.8rem;
    }



    .blog-post-content {
        padding: 30px 20px;
        font-size: 1rem;
    }

    .blog-post-content h2 {
        font-size: 1.6rem;
    }

    .blog-post-content h3 {
        font-size: 1.3rem;
    }

    .blog-post-meta {
        gap: 15px;
    }


    .post-navigation {
        grid-template-columns: 1fr;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }

}

