/**
 * Single Post Styles
 * Estilos para artículos individuales del blog
 * Theme: Santé
 */

/* ============================================
   POST HERO SECTION
   ============================================ */

.single-post {
    background: #f5f7fa;
}

.post-hero {
    position: relative;
    background: linear-gradient(135deg, #C41E3A 0%, #8B1E3F 50%, #6D6E71 100%);
    min-height: 450px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.post-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.03)" d="M0,96L48,112C96,128,192,160,288,165.3C384,171,480,149,576,128C672,107,768,85,864,90.7C960,96,1056,128,1152,138.7C1248,149,1344,139,1392,133.3L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.6;
}

.post-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.post-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: kenBurns 20s ease-out infinite alternate;
}

@keyframes kenBurns {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

.post-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(0,0,0,0.2) 0%, 
        rgba(196, 30, 58, 0.75) 50%,
        rgba(139, 30, 63, 0.9) 100%
    );
}

.post-hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 60px 0;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-breadcrumbs {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.25);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    animation: fadeIn 1s ease-out 0.2s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.post-breadcrumbs a {
    color: rgba(255,255,255,0.95);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.post-breadcrumbs a:hover {
    color: white;
    transform: translateX(-2px);
}

.post-breadcrumbs a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 1px;
    background: white;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.post-breadcrumbs a:hover::after {
    transform: scaleX(1);
}

.post-breadcrumbs i {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.8);
}

.post-title {
    color: white;
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 30px;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0,0,0,0.4);
    animation: fadeInUp 1s ease-out 0.4s both;
    letter-spacing: -0.5px;
}

.post-meta {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.meta-item {
    color: rgba(255,255,255,0.95);
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.meta-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.meta-item i {
    font-size: 1.1rem;
    opacity: 0.9;
}

.meta-author {
    background: rgba(196, 30, 58, 0.3);
}

.meta-date {
    background: rgba(109, 110, 113, 0.3);
}

/* ============================================
   POST CONTENT SECTION
   ============================================ */

.post-content-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, #f5f7fa 0%, #ffffff 100%);
}

.post-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 60px;
    align-items: start;
}

/* Main Content */
.post-main-content {
    background: white;
    border-radius: 20px;
    padding: 60px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
}

.post-main-content:hover {
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
}

.post-content {
    color: #2c3e50;
    line-height: 1.9;
    font-size: 1.125rem;
    font-weight: 400;
}

.post-content::first-letter {
    font-size: 4rem;
    font-weight: 700;
    float: left;
    line-height: 1;
    margin: 5px 15px 0 0;
    color: #C41E3A;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    color: #1a1a1a;
    font-weight: 700;
    margin-top: 45px;
    margin-bottom: 25px;
    scroll-margin-top: 120px;
    position: relative;
}

.post-content h2 {
    font-size: 2.2rem;
    padding-bottom: 20px;
    margin-bottom: 30px;
    position: relative;
}

.post-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #C41E3A 0%, transparent 100%);
    border-radius: 2px;
}

.post-content h3 {
    font-size: 1.75rem;
    color: #2c3e50;
    padding-left: 20px;
    border-left: 4px solid #C41E3A;
}

.post-content h4 {
    font-size: 1.35rem;
    color: #34495e;
}

.post-content p {
    margin-bottom: 25px;
    text-align: justify;
}

.post-content strong {
    font-weight: 700;
    color: #1a1a1a;
}

.post-content em {
    font-style: italic;
    color: #555;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    transition: all 0.3s ease;
}

.post-content img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.18);
}

.post-content ul,
.post-content ol {
    margin-bottom: 30px;
    padding-left: 35px;
}

.post-content ul li,
.post-content ol li {
    margin-bottom: 12px;
    line-height: 1.8;
    position: relative;
}

.post-content ul li::marker {
    color: #C41E3A;
    font-weight: 700;
}

.post-content ol li::marker {
    color: #C41E3A;
    font-weight: 700;
}

.post-content blockquote {
    background: linear-gradient(135deg, #fff5f7 0%, #fef8f9 100%);
    border-left: 5px solid #C41E3A;
    padding: 30px 35px;
    margin: 40px 0;
    font-style: italic;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 5px 20px rgba(196, 30, 58, 0.08);
}

.post-content blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 5rem;
    color: rgba(196, 30, 58, 0.2);
    font-family: Georgia, serif;
    line-height: 1;
}

.post-content blockquote p {
    position: relative;
    z-index: 1;
    margin-bottom: 0;
    color: #555;
    font-size: 1.1rem;
}

.post-content a {
    color: #C41E3A;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.post-content a:hover {
    color: #9a1729;
    border-bottom-color: #9a1729;
}

.post-content code {
    background: #f8f9fa;
    padding: 4px 10px;
    border-radius: 6px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    color: #C41E3A;
    border: 1px solid #e9ecef;
}

.post-content pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 30px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 40px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    position: relative;
}

.post-content pre::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 35px;
    background: #1a1a1a;
    border-radius: 12px 12px 0 0;
}

.post-content pre code {
    background: none;
    color: inherit;
    padding: 0;
    border: none;
    font-size: 0.95rem;
}

/* Tags */
.post-tags {
    margin-top: 60px;
    padding-top: 50px;
    border-top: 2px solid #e9ecef;
}

.post-tags h4 {
    color: #1a1a1a;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-tags h4 i {
    color: #C41E3A;
    font-size: 1.1rem;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    color: #555;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tag-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.tag-item:hover::before {
    left: 100%;
}

.tag-item:hover {
    background: linear-gradient(135deg, #C41E3A 0%, #9a1729 100%);
    color: white;
    border-color: #C41E3A;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(196, 30, 58, 0.3);
}

/* Share Buttons */
.post-share {
    margin-top: 50px;
    padding: 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 15px;
    border: 2px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.post-share::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #C41E3A 0%, #9a1729 100%);
}

.post-share h4 {
    color: #1a1a1a;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-share h4 i {
    color: #C41E3A;
    font-size: 1.1rem;
}

.share-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.share-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.share-btn:hover::before {
    width: 300px;
    height: 300px;
}

.share-btn i {
    position: relative;
    z-index: 1;
}

.share-btn span {
    position: relative;
    z-index: 1;
}

.share-btn.facebook {
    background: linear-gradient(135deg, #1877f2 0%, #0c5fcd 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3);
}

.share-btn.twitter {
    background: linear-gradient(135deg, #1DA1F2 0%, #0d8bd9 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(29, 161, 242, 0.3);
}

.share-btn.whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #1ebe57 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.share-btn.email {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.share-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.share-btn.facebook:hover {
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.5);
}

.share-btn.twitter:hover {
    box-shadow: 0 8px 25px rgba(29, 161, 242, 0.5);
}

.share-btn.whatsapp:hover {
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.share-btn.email:hover {
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.5);
}

/* Author Box */
.post-author-box {
    display: flex;
    gap: 30px;
    margin-top: 60px;
    padding: 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    border: 2px solid #e9ecef;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.post-author-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #C41E3A 0%, #9a1729 100%);
}

.post-author-box:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.author-avatar {
    flex-shrink: 0;
    position: relative;
}

.author-avatar::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 3px solid #C41E3A;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.post-author-box:hover .author-avatar::after {
    opacity: 1;
}

.author-avatar img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
    transition: transform 0.3s ease;
}

.post-author-box:hover .author-avatar img {
    transform: scale(1.05);
}

.author-info {
    flex: 1;
}

.author-name {
    color: #1a1a1a;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.author-bio {
    color: #555;
    line-height: 1.7;
    margin-bottom: 18px;
    font-size: 1rem;
}

.author-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: white;
    background: linear-gradient(135deg, #C41E3A 0%, #9a1729 100%);
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}

.author-link:hover {
    gap: 14px;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.4);
}

/* Related Posts */
.related-posts {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 3px solid #e9ecef;
}

.related-posts .section-title {
    color: #1a1a1a;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.related-posts .section-title::after {
    content: '';
    flex: 1;
    height: 3px;
    background: linear-gradient(90deg, #e9ecef 0%, transparent 100%);
}

.related-posts .section-title i {
    color: #C41E3A;
    font-size: 2rem;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-post-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
}

.related-post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #C41E3A 0%, #9a1729 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.related-post-card:hover::before {
    transform: scaleX(1);
}

.related-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(196, 30, 58, 0.15);
}

.related-post-image {
    display: block;
    overflow: hidden;
    height: 200px;
    position: relative;
}

.related-post-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.related-post-card:hover .related-post-image::after {
    opacity: 1;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-post-card:hover .related-post-image img {
    transform: scale(1.1) rotate(2deg);
}

.related-post-content {
    padding: 25px;
}

.related-post-title {
    font-size: 1.15rem;
    margin-bottom: 12px;
    line-height: 1.4;
    font-weight: 700;
}

.related-post-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-post-title a:hover {
    color: #C41E3A;
}

.related-post-date {
    color: #999;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.related-post-date i {
    color: #C41E3A;
}

/* Sidebar */
.post-sidebar {
    position: sticky;
    top: 110px;
    height: fit-content;
}

.sidebar-widget {
    background: white;
    border-radius: 15px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    animation: fadeInRight 0.8s ease-out;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.sidebar-widget:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.widget-title {
    color: #1a1a1a;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 3px solid #C41E3A;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 40px;
    height: 3px;
    background: white;
}

.widget-title i {
    color: #C41E3A;
    font-size: 1.2rem;
}

/* Table of Contents */
.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item {
    margin-bottom: 8px;
}

.toc-item a {
    display: block;
    padding: 12px 18px;
    color: #555;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.toc-item a:hover,
.toc-item a.active {
    background: linear-gradient(90deg, rgba(196, 30, 58, 0.08) 0%, transparent 100%);
    color: #C41E3A;
    padding-left: 24px;
    border-left-color: #C41E3A;
}

.toc-h3 a {
    padding-left: 35px;
    font-size: 0.9rem;
    color: #666;
}

.toc-h3 a:hover {
    padding-left: 42px;
}

/* Search Widget */
.search-input-group {
    display: flex;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.search-input-group:focus-within {
    border-color: #C41E3A;
    box-shadow: 0 0 0 4px rgba(196, 30, 58, 0.1);
}

.search-field {
    flex: 1;
    border: none;
    padding: 14px 18px;
    font-size: 0.95rem;
    color: #333;
}

.search-field:focus {
    outline: none;
}

.search-field::placeholder {
    color: #999;
}

.search-submit {
    background: linear-gradient(135deg, #C41E3A 0%, #9a1729 100%);
    border: none;
    color: white;
    padding: 14px 22px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.search-submit:hover {
    background: linear-gradient(135deg, #9a1729 0%, #7a1321 100%);
    transform: scale(1.05);
}

/* Categories Widget */
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li {
    margin-bottom: 8px;
}

.categories-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    color: #555;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.categories-list li a:hover {
    background: linear-gradient(90deg, rgba(196, 30, 58, 0.08) 0%, transparent 100%);
    color: #C41E3A;
    padding-left: 24px;
    border-left-color: #C41E3A;
}

.categories-list li a i {
    font-size: 0.75rem;
    color: #C41E3A;
    margin-right: 10px;
}

.category-count {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #666;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Recent Posts Widget */
.recent-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-post-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 2px solid #f5f5f5;
    transition: all 0.3s ease;
}

.recent-post-item:hover {
    padding-left: 5px;
}

.recent-post-item:last-child {
    border-bottom: none;
}

.recent-post-thumb {
    flex-shrink: 0;
    width: 75px;
    height: 75px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.recent-post-thumb::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(196, 30, 58, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.recent-post-item:hover .recent-post-thumb::after {
    opacity: 1;
}

.recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recent-post-item:hover .recent-post-thumb img {
    transform: scale(1.15);
}

.recent-post-info {
    flex: 1;
    min-width: 0;
}

.recent-post-title {
    font-size: 0.95rem;
    margin-bottom: 8px;
    line-height: 1.4;
    font-weight: 600;
}

.recent-post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-post-title a:hover {
    color: #C41E3A;
}

.recent-post-date {
    color: #999;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.recent-post-date i {
    color: #C41E3A;
    font-size: 0.9rem;
}

/* Comments Section */
.comments-area {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 3px solid #e9ecef;
}

.comments-title {
    color: #1a1a1a;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.comments-title::before {
    content: '';
    width: 5px;
    height: 40px;
    background: linear-gradient(180deg, #C41E3A 0%, #9a1729 100%);
    border-radius: 3px;
}

/* Responsive */
@media (max-width: 992px) {
    .post-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .post-sidebar {
        position: static;
        order: 2;
    }
    
    .post-main-content {
        order: 1;
        padding: 40px;
    }
    
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .post-hero {
        min-height: 380px;
    }
    
    .post-hero-content {
        padding: 40px 0;
    }
    
    .post-title {
        font-size: 2.2rem;
        letter-spacing: -0.3px;
    }
    
    .post-meta {
        gap: 12px;
    }
    
    .meta-item {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
    
    .post-content-section {
        padding: 50px 0;
    }
    
    .post-main-content {
        padding: 30px 25px;
        border-radius: 15px;
    }
    
    .post-content {
        font-size: 1.05rem;
        line-height: 1.8;
    }
    
    .post-content::first-letter {
        font-size: 3rem;
        margin: 3px 12px 0 0;
    }
    
    .post-content h2 {
        font-size: 1.75rem;
    }
    
    .post-content h3 {
        font-size: 1.4rem;
    }
    
    .post-content h4 {
        font-size: 1.2rem;
    }
    
    .post-author-box {
        flex-direction: column;
        text-align: center;
        padding: 30px 25px;
    }
    
    .author-avatar {
        margin: 0 auto;
    }
    
    .author-link {
        justify-content: center;
    }
    
    .related-posts {
        margin-top: 60px;
        padding-top: 50px;
    }
    
    .related-posts .section-title {
        font-size: 1.8rem;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        justify-content: center;
        width: 100%;
    }
    
    .sidebar-widget {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .post-hero {
        min-height: 350px;
    }
    
    .post-title {
        font-size: 1.8rem;
    }
    
    .post-breadcrumbs {
        padding: 8px 15px;
        gap: 8px;
        font-size: 0.85rem;
    }
    
    .post-hero-content {
        padding: 30px 0;
    }
    
    .post-main-content {
        padding: 25px 20px;
    }
    
    .post-content {
        font-size: 1rem;
    }
    
    .post-content h2 {
        font-size: 1.5rem;
    }
    
    .post-author-box {
        padding: 25px 20px;
    }
    
    .tags-list {
        gap: 8px;
    }
    
    .tag-item {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
    
    .post-share {
        padding: 25px 20px;
    }
    
    .share-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Animaciones adicionales para interactividad */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.widget-title i {
    animation: pulse 2s ease-in-out infinite;
}

/* Smooth scrolling behavior */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background: #C41E3A;
    color: white;
}

::-moz-selection {
    background: #C41E3A;
    color: white;
}

/* Scrollbar personalizado */
.post-content::-webkit-scrollbar {
    width: 8px;
}

.post-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.post-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #C41E3A 0%, #9a1729 100%);
    border-radius: 10px;
}

.post-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #9a1729 0%, #7a1321 100%);
}

/* Loading animation para imágenes */
.post-content img {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.post-content img[src] {
    animation: none;
    background: transparent;
}

/* Focus visible para accesibilidad */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid #C41E3A;
    outline-offset: 2px;
}

/* Mejora de rendimiento */
.post-hero-image img,
.related-post-image img,
.recent-post-thumb img {
    will-change: transform;
}

/* Print styles */
@media print {
    .post-hero,
    .post-breadcrumbs,
    .post-meta,
    .post-tags,
    .post-share,
    .post-author-box,
    .related-posts,
    .post-sidebar,
    .comments-area {
        display: none;
    }
    
    .post-main-content {
        box-shadow: none;
        padding: 0;
    }
    
    .post-content {
        color: #000;
    }
    
    .post-content a {
        color: #000;
        text-decoration: underline;
    }
}
