/* HERO IMAGE */
.single-blog-hero {
    width: 100%;
    height: 450px;
    position: relative;
    margin: 0 0 50px;
    overflow: hidden;
}

.single-blog-hero-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.single-blog-hero-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.single-blog-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.1) 0%,
        rgba(0,0,0,0.3) 100%
    );
}

/* LAYOUT 70/30 */
.single-blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 80px;
    display: grid;
    grid-template-columns: 70% 30%;
    gap: 50px;
    align-items: start;
}

.single-blog-content {
    width: 100%;
}

.single-blog-sidebar {
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

/* HEADER */
.single-blog-header {
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e5e5e5;
}

.single-blog-title {
    font-size: 44px;
    line-height: 1.2;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 20px;
    letter-spacing: -0.5px;
}

.single-blog-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #7f8c8d;
}

.single-blog-date {
    font-style: italic;
}

.single-blog-separator {
    color: #ddd;
}

.single-blog-category {
    color: #D13138;
    font-weight: 600;
}

/* CONTENIDO*/
.single-blog-entry-content {
    font-size: 18px;
    line-height: 1.8;
    color: #34495e;
}

.single-blog-entry-content h2 {
    font-size: 32px;
    margin: 50px 0 20px;
    color: #2c3e50;
    font-weight: 700;
    scroll-margin-top: 100px;
}

.single-blog-entry-content h3 {
    font-size: 24px;
    margin: 35px 0 15px;
    color: #34495e;
    font-weight: 600;
    scroll-margin-top: 100px;
}

.single-blog-entry-content p {
    margin-bottom: 22px;
}

.single-blog-entry-content ul,
.single-blog-entry-content ol {
    margin: 25px 0 25px 30px;
}

.single-blog-entry-content li {
    margin-bottom: 12px;
}

.single-blog-entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 35px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.single-blog-entry-content a {
    color: #D13138;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.single-blog-entry-content a:hover {
    color: #2c3e50;
}

.single-blog-entry-content blockquote {
    border-left: 4px solid #D13138;
    padding: 20px 25px;
    margin: 30px 0;
    background: #f9f9f9;
    font-style: italic;
    color: #555;
}

/* FOOTER DEL POST*/
.single-blog-footer {
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid #e5e5e5;
}

.single-blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.single-blog-tags strong {
    color: #2c3e50;
    margin-right: 5px;
    font-weight: 600;
}

.single-blog-tags a {
    display: inline-block;
    background: #ecf0f1;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 13px;
    color: #7f8c8d;
    text-decoration: none;
    transition: all 0.3s ease;
}

.single-blog-tags a:hover {
    background: #D13138;
    color: #fff;
    transform: translateY(-2px);
}

/* SIDEBAR */
.single-blog-widget {
    background: #fff;
    padding: 30px;
    margin-bottom: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.single-blog-widget h3 {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 20px;
    position: relative;
}

.single-blog-widget h3::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 20%;
    height: 3px;
    background: #D13138;
}

.contact-widget h3::after {
    left: 50%;
    transform: translateX(-50%);
}

.toc-widget nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-widget nav li {
    margin-bottom: 10px;
}

.toc-widget nav a {
    color: #7f8c8d;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    display: block;
    padding: 8px 10px 8px 30px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.toc-widget nav a::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #bdc3c7;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.toc-widget nav a:hover {
    color: #D13138;
    border-left-color: #D13138;
    background: #f9f9f9;
    padding-left: 35px;
}

.toc-widget nav a:hover::before {
    background: #D13138;
    width: 8px;
    height: 8px;
    left: 20px;
}

.toc-widget nav a.active {
    color: #D13138;
    border-left-color: #D13138;
    font-weight: 600;
    background: #fff5f5;
    padding-left: 35px;
}

.toc-widget nav a.active::before {
    background: #D13138;
    width: 8px;
    height: 8px;
    left: 20px;
}

.toc-widget nav li ul {
    margin-top: 8px;
    padding-left: 20px;
}

.toc-widget nav li ul a {
    font-size: 13px;
    color: #95a5a6;
    padding-left: 25px;
}

.toc-widget nav li ul a::before {
    width: 4px;
    height: 4px;
    left: 12px;
}

.toc-widget nav li ul a:hover::before,
.toc-widget nav li ul a.active::before {
    width: 6px;
    height: 6px;
    left: 15px;
}

.toc-loading {
    color: #bdc3c7;
    font-size: 14px;
    font-style: italic;
    text-align: center;
}

.contact-widget {
    text-align: center;
}

.contact-text {
    font-size: 15px;
    line-height: 1.6;
    color: #7f8c8d;
    margin: 0 0 25px;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #D13138;
    color: #fff !important;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(209, 49, 56, 0.3);
}

.contact-button:hover {
    color: #2c3e50 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(209, 49, 56, 0.4);
}

.contact-button svg {
    color: inherit;
    transition: color 0.3s ease;
}

.contact-button:visited,
.contact-button:focus,
.contact-button:active {
    color: #fff !important;
}

.contact-button:hover:visited,
.contact-button:hover:focus,
.contact-button:hover:active {
    color: #2c3e50 !important;
}

@media (max-width: 1024px) {
    .single-blog-container {
        grid-template-columns: 65% 35%;
        gap: 40px;
    }
    
    .single-blog-title {
        font-size: 38px;
    }
    
    .single-blog-entry-content {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .single-blog-hero {
        height: 300px;
    }
    
    .single-blog-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .single-blog-sidebar {
        position: static;
    }
    
    .single-blog-title {
        font-size: 32px;
    }
    
    .single-blog-entry-content {
        font-size: 16px;
    }
    
    .single-blog-entry-content h2 {
        font-size: 28px;
    }
    
    .single-blog-entry-content h3 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .single-blog-hero {
        height: 250px;
    }
    
    .single-blog-title {
        font-size: 26px;
    }
    
    .single-blog-widget {
        padding: 20px;
    }
    
    .contact-button {
        width: 100%;
        padding: 16px;
    }
}