/* Variables de colores */
:root {
    --primary: #059669;
    --accent: #f8f9fa;
    --white: #ffffff;
    --light-gray: #f5f7fa;
    --gray: #e0e5ec;
    --dark-gray: #8a94a6;
    --text: #333333;
    --text-light: #555555;
}

/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--white);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header y navegación */
header {
    background-color: var(--primary);
    color: var(--white);
    /*position: sticky;*/
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/*header-post {
    background-color: var(--primary);
    color: var(--white);
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}*/

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

    .logo span {
        color: var(--accent);
    }

.logo-icon {
    margin-right: 8px;
    font-size: 28px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

    nav a:hover {
        color: var(--primary);
    }

    nav a::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 0;
        height: 2px;
        background-color: var(--accent);
        transition: width 0.3s;
    }

    nav a:hover::after {
        width: 100%;
    }

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-btn, .menu-btn {
    background: none;
    border: none;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s;
}

    .search-btn:hover, .menu-btn:hover {
        color: var(--accent);
    }

.menu-btn {
    display: none;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 10px 0;
    background-color: var(--light-gray);
}

.breadcrumbs-list {
    display: flex;
    list-style: none;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom:0px !important;
}

.breadcrumbs-item {
    display: flex;
    align-items: center;
    color: var(--dark-gray);
    font-size: 14px;
}

    .breadcrumbs-item:not(:last-child)::after {
        content: '/';
        margin: 0 10px;
        color: var(--dark-gray);
    }

    .breadcrumbs-item a:hover {
        color: var(--accent);
    }

    .breadcrumbs-item.active {
        color: var(--text);
        font-weight: 500;
    }

/* Article Layout */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    padding: 40px 0;
}

/* Article Header */
.article-header {
    margin-bottom: 30px;
    border-radius: 10px;
}

.article-category {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 10px;
    font-size: 14px;    
    font-weight: normal !important;
    margin-bottom: 7px;
}

.article-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background-color: var(--primary) !important;
    padding-left: 30px !important;
    padding-right: 30px !important;
    border-radius:10px !important;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    background-color: var(--primary) !important;
    color: var(--dark-gray);
    font-size: 14px;
}

.article-date {
    font-size: 14px;
    padding-left: 0rem !important;
    padding-bottom: 0rem !important;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-weight: 600;
    color: var(--text);
}

/* Featured Image */
.featured-image {
    margin-bottom: 10px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height:300px;
}

    .featured-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

/* Article Content */
.article-content {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text);
}

    .article-content p {
        margin-bottom: 25px;
    }

    .article-content h2 {
        font-size: 28px;
        font-weight: 700;
        margin: 40px 0 20px;
        color: var(--primary);
    }

    .article-content h3 {
        font-size: 24px;
        font-weight: 600;
        margin: 30px 0 15px;
        color: var(--primary);
    }

    .article-content ul, .article-content ol {
        margin-bottom: 25px;
        padding-left: 25px;
    }

    .article-content li {
        margin-bottom: 10px;
    }

    .article-content a {
        color: var(--accent);
        font-weight: 500;
        border-bottom: 1px solid transparent;
        transition: border-color 0.3s;
    }

        .article-content a:hover {
            border-color: var(--accent);
        }

    .article-content blockquote {
        border-left: 4px solid var(--accent);
        padding: 15px 20px;
        margin: 30px 0;
        background-color: var(--light-gray);
        font-style: italic;
    }

    .article-content img {
        border-radius: 8px;
        margin: 30px 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .article-content .product-highlight {
        background-color: var(--light-gray);
        border-radius: 10px;
        padding: 25px;
        margin: 30px 0;
        display: flex;
        gap: 20px;
        align-items: center;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    }

.product-highlight img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    margin: 0;
    border-radius: 8px;
}

.product-highlight-content {
    flex: 1;
}

.product-highlight h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary);
}

.product-highlight .price {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 10px;
}

.product-highlight .btn-small {
    display: inline-block;
    background-color: var(--accent);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.3s;
}

    .product-highlight .btn-small:hover {
        background-color: #CDEDE6;
        transform: translateY(-2px);
    }

/* Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 40px 0;
}

.tag {
    background-color: var(--light-gray);
    color: var(--text);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    transition: background-color 0.3s, color 0.3s;
}

    .tag:hover {
        background-color: var(--accent);
        color: var(--white);
    }

/* Share */
.article-share {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid var(--gray);
    border-bottom: 1px solid var(--gray);
}

.share-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary);
}

.share-buttons {
    display: flex;
    gap: 15px;
}

.share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--light-gray);
    border-radius: 50%;
    color: var(--text);
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
}

    .share-button:hover {
        background-color: var(--accent);
        color: var(--white);
        transform: translateY(-3px);
    }

/* Author Box */
.author-box {
    background-color: var(--light-gray);
    border-radius: 10px;
    padding: 30px;
    display: flex;
    gap: 20px;
    margin: 40px 0;
}

.author-box-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-box-content {
    flex: 1;
}

.author-box-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary);
}

.author-box-bio {
    margin-bottom: 15px;
    color: var(--text-light);
}

.author-box-social {
    display: flex;
    gap: 10px;
}

.author-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: var(--white);
    border-radius: 50%;
    color: var(--text);
    transition: background-color 0.3s, color 0.3s;
}

    .author-social-link:hover {
        background-color: var(--accent);
        color: var(--white);
    }

/* Navigation */
.article-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 40px 0;
}

.nav-previous, .nav-next {
    background-color: var(--light-gray);
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

    .nav-previous:hover, .nav-next:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    }

.nav-label {
    font-size: 14px;
    color: var(--dark-gray);
    margin-bottom: 5px;
    display: block;
}

.nav-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
}

.nav-next {
    text-align: right;
}

/* Comments */
.comments {
    margin: 60px 0;
}

.comments-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--primary);
}

.comment {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.comment-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.comment-author {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
}

.comment-date {
    font-size: 14px;
    color: var(--dark-gray);
}

.comment-body {
    margin-bottom: 15px;
}

.comment-reply {
    color: var(--accent);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
}

.comment-form {
    margin-top: 40px;
}

.form-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

    .form-control:focus {
        outline: none;
        border-color: var(--accent);
    }

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.btn {
    display: inline-block;
    background-color: var(--accent);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

    .btn:hover {
        background-color: #CDEDE6;
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(255, 107, 0, 0.2);
    }

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    margin-bottom: 40px;
}

.widget-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary);
    position: relative;
}

    .widget-title::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 0;
        width: 40px;
        height: 3px;
        background-color: var(--accent);
    }

/* Search Widget */
.search-form {
    display: flex;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    font-size: 16px;
    outline: none;
}

.search-button {
    background-color: var(--accent);
    color: var(--white);
    border: none;
    padding: 0 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

    .search-button:hover {
        background-color: #CDEDE6;
    }

/* Popular Posts */
.popular-posts {
    list-style: none;
    padding:0px !important;
}

.popular-post {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.popular-post-img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: contain;
}

.popular-post-content {
    flex: 1;
}

.popular-post-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.4;
    color: var(--primary);
}

.popular-post-date {
    font-size: 12px;
    color: var(--dark-gray);
}

/* Categories */
.categories-list {
    list-style: none;
}

.category-item {
    margin-bottom: 12px;
}

.category-link {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    background-color: var(--light-gray);
    border-radius: 8px;
    transition: background-color 0.3s, transform 0.3s;
}

    .category-link:hover {
        background-color: var(--accent);
        color: var(--primary);
        transform: translateX(5px);
    }

.category-count {
    background-color: var(--white);
    color: var(--text);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
    transition: background-color 0.3s, color 0.3s;
}

.category-link:hover .category-count {
    background-color: var(--primary);
    color: var(--white);
}

/* Tags Cloud */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Newsletter Widget */
.sidebar-newsletter {
    background-color: var(--primary);
    color: var(--white);
    padding: 25px;
    border-radius: 10px;
}

.sidebar-newsletter-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

.sidebar-newsletter-text {
    margin-bottom: 20px;
    font-size: 14px;
    opacity: 0.9;
}

.sidebar-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-newsletter-input {
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

.sidebar-newsletter-button {
    background-color: var(--accent);
    color: var(--white);
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

    .sidebar-newsletter-button:hover {
        background-color: #CDEDE6;
    }

/* Related Articles */
.related-articles {
    margin: 60px 0;
}

.related-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--primary);
    position: relative;
}

    .related-title::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 0;
        width: 60px;
        height: 3px;
        background-color: var(--accent);
    }

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-article {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

    .related-article:hover {
        transform: translateY(-5px);
    }

    .related-article img {
        width: 100%;
        height: 180px;
        object-fit: cover;
    }

.related-article-content {
    padding: 20px;
}

.related-article-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    color: var(--primary);
}

.related-article-meta {
    font-size: 14px;
    color: var(--dark-gray);
}

/* Footer */
footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
}

    .footer-column h3::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 0;
        width: 40px;
        height: 2px;
        background-color: var(--accent);
    }

.footer-links {
    list-style: none;
}

    .footer-links li {
        margin-bottom: 12px;
    }

    .footer-links a {
        opacity: 0.8;
        transition: opacity 0.3s, transform 0.3s;
        display: inline-block;
    }

        .footer-links a:hover {
            opacity: 1;
            color: var(--accent);
            transform: translateX(5px);
        }

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background-color 0.3s, transform 0.3s;
}

    .social-link:hover {
        background-color: var(--accent);
        transform: translateY(-3px);
    }

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 992px) {
    .article-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        margin-top: 40px;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .article-title {
        font-size: 28px;
    }

    .article-content {
        font-size: 16px;
    }

    .article-navigation {
        grid-template-columns: 1fr;
    }

    .nav-next {
        text-align: left;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .author-box-social {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .header-container {
        padding: 15px 0;
    }

    .article-meta {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .product-highlight {
        flex-direction: column;
    }

    .comment {
        flex-direction: column;
    }

    .comment-avatar {
        width: 50px;
        height: 50px;
    }

    .comment-header {
        flex-direction: column;
    }
}
