/* Estilos para Blog - Lista y Detalle */

/* ===== BLOG LIST STYLES ===== */
.blog-post {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.blog-post-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post:hover .blog-post-image img {
    transform: scale(1.05);
}

.no-image {
    height: 100%;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
}

.no-image i {
    font-size: 48px;
    margin-bottom: 10px;
}

.blog-post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-post:hover .blog-post-overlay {
    opacity: 1;
}

.btn-detail {
    background: #ff6600;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
}

.blog-post-content {
    padding: 20px;
}

.blog-post-meta {
    margin-bottom: 15px;
    font-size: 12px;
    color: #666;
}

.blog-post-meta span {
    margin-right: 15px;
}

.blog-post-meta i {
    margin-right: 5px;
    color: #ff6600;
}

.blog-post-title {
    margin-bottom: 15px;
    font-size: 18px;
    line-height: 1.4;
}

.blog-post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post-title a:hover {
    color: #ff6600;
}

.blog-post-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-read-more {
    background: #ff6600;
    color: white;
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s ease;
}

.blog-read-more:hover {
    background: #e55a00;
    color: white;
    text-decoration: none;
}

.pagination-wrapper {
    text-align: center;
    margin-top: 40px;
}

.pagination > li > a {
    color: #ff6600;
    border-color: #ddd;
}

.pagination > li.active > a {
    background: #ff6600;
    border-color: #ff6600;
}

.pagination > li > a:hover {
    background: #ff6600;
    border-color: #ff6600;
    color: white;
}

/* ===== BLOG DETAIL STYLES ===== */
.breadcrumb-area {
    margin-bottom: 30px;
}

.breadcrumb {
    background: transparent;
    padding: 10px 0;
    margin: 0;
}

.breadcrumb-item a {
    color: #ff6600;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.blog-detail {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.blog-detail-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.blog-detail-title {
    color: #333;
    margin-bottom: 20px;
    line-height: 1.4;
    font-size: 28px;
}

.blog-detail-meta {
    color: #666;
    font-size: 14px;
}

.blog-meta-item {
    margin-right: 20px;
    display: inline-block;
    margin-bottom: 5px;
}

.blog-meta-item i {
    color: #ff6600;
    margin-right: 5px;
}

.blog-detail-image {
    margin-bottom: 30px;
    text-align: center;
}

.blog-detail-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.blog-detail-excerpt {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-left: 4px solid #ff6600;
    border-radius: 4px;
}

.blog-detail-excerpt .lead {
    font-size: 18px;
    font-weight: 300;
    color: #555;
    margin: 0;
    line-height: 1.6;
}

.blog-detail-body {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.blog-detail-body h1,
.blog-detail-body h2,
.blog-detail-body h3,
.blog-detail-body h4,
.blog-detail-body h5,
.blog-detail-body h6 {
    color: #333;
    margin-top: 30px;
    margin-bottom: 15px;
}

.blog-detail-body h2 {
    border-bottom: 2px solid #ff6600;
    padding-bottom: 10px;
}

.blog-detail-body ul,
.blog-detail-body ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.blog-detail-body li {
    margin-bottom: 8px;
}

.blog-detail-body blockquote {
    border-left: 4px solid #ff6600;
    margin: 20px 0;
    padding: 15px 20px;
    background: #f8f9fa;
    font-style: italic;
}

.blog-detail-body img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.blog-detail-share {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.blog-detail-share h5 {
    margin-bottom: 20px;
    color: #333;
}

.social-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-share-buttons .btn {
    padding: 8px 15px;
    font-size: 14px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-facebook {
    background: #3b5998;
    color: white;
}

.btn-facebook:hover {
    background: #2d4373;
    color: white;
}

.btn-twitter {
    background: #1da1f2;
    color: white;
}

.btn-twitter:hover {
    background: #0d8bd9;
    color: white;
}

.btn-whatsapp {
    background: #25d366;
    color: white;
}

.btn-whatsapp:hover {
    background: #128c7e;
    color: white;
}

.btn-email {
    background: #6c757d;
    color: white;
}

.btn-email:hover {
    background: #545b62;
    color: white;
}

.blog-navigation {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    height: 80px;
}

.nav-link:hover {
    background: #ff6600;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

.nav-previous .nav-link {
    justify-content: flex-start;
}

.nav-next .nav-link {
    justify-content: flex-end;
    text-align: right;
}

.nav-content {
    display: flex;
    flex-direction: column;
}

.nav-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.nav-link:hover .nav-label {
    color: rgba(255,255,255,0.8);
}

.nav-title {
    font-weight: 500;
    font-size: 14px;
    line-height: 1.3;
}

.nav-link i {
    font-size: 18px;
    margin: 0 15px;
}

/* ===== SIDEBAR WIDGETS ===== */
.sidebar {
    padding-left: 15px;
}

.widget {
    background: #fff;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.widget-title {
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #ff6600;
    padding-bottom: 10px;
}

.back-to-blog .btn {
    background: #ff6600;
    border: none;
    padding: 12px 20px;
    font-weight: 500;
}

.back-to-blog .btn:hover {
    background: #e55a00;
}

.recent-post-item, .related-post-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.recent-post-item:last-child, .related-post-item:last-child {
    border-bottom: none;
}

.recent-post-image, .related-post-image {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    border-radius: 4px;
    overflow: hidden;
}

.recent-post-image img, .related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image-small {
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
}

.recent-post-content h6, .related-post-content h6 {
    margin: 0 0 5px 0;
    font-size: 14px;
    line-height: 1.3;
}

.recent-post-content h6 a, .related-post-content h6 a {
    color: #333;
    text-decoration: none;
}

.recent-post-content h6 a:hover, .related-post-content h6 a:hover {
    color: #ff6600;
}

.recent-post-content small, .related-post-content small {
    color: #666;
    font-size: 12px;
}

.contact-widget {
    text-align: center;
}

.contact-info p {
    margin-bottom: 10px;
    color: #666;
}

.contact-info i {
    color: #ff6600;
    margin-right: 8px;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
    .sidebar {
        padding-left: 0;
        margin-top: 30px;
    }
    
    .blog-post-item {
        margin-bottom: 30px;
    }
    
    .blog-post-meta span {
        display: block;
        margin-bottom: 5px;
    }
    
    .blog-detail {
        padding: 20px;
    }
    
    .blog-detail-title {
        font-size: 24px;
    }
    
    .blog-meta-item {
        display: block;
        margin-bottom: 10px;
    }
    
    .social-share-buttons {
        justify-content: center;
    }
    
    .nav-link {
        height: auto;
        min-height: 80px;
        padding: 15px;
    }
    
    .nav-title {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .blog-post-content {
        padding: 15px;
    }
    
    .blog-detail {
        padding: 15px;
    }
    
    .blog-detail-title {
        font-size: 20px;
    }
    
    .social-share-buttons .btn {
        flex: 1;
        text-align: center;
        margin-bottom: 5px;
    }
}