/* Blog Page Styles */
:root {
    --primary-color: #eac736;
    --secondary-color: #2d5a3f;
    --accent-color: #d4af37;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #666;
    --white: #fff;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

/* Base Styles */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-gray);
    margin: 0;
    padding: 0;
}

/* Estilos para filtros */
#categories-list a.active,
#tags-cloud a.active {
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
}

#categories-list a.active:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

#tags-cloud a {
    display: inline-block;
    padding: 4px 12px;
    margin: 0 5px 8px 0;
    background-color: #f5f5f5;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

#tags-cloud a:hover,
#tags-cloud a.active {
    background-color: var(--primary-color);
    color: white;
}

/* Estilos para los filtros */
.filters-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 15px 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

#active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.active-filter-tag {
    display: inline-flex;
    align-items: center;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-right: 5px;
}

.active-filter-tag button {
    background: none;
    border: none;
    color: white;
    margin-left: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.active-filter-tag button:hover {
    background-color: rgba(255,255,255,0.2);
}

.clear-filters-btn {
    display: inline-flex;
    align-items: center;
    background: none;
    border: 1px solid #e0e0e0;
    color: var(--text-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-filters-btn i {
    margin-right: 5px;
    font-size: 0.9em;
}

.clear-filters-btn:hover {
    background-color: #f0f0f0;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Efecto para las tarjetas filtradas */
.blog-card {
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.blog-card[style*="display: none"] {
    display: none !important;
}

/* Mobile menu removed: styles related to .mobile-menu-btn, .mobile-nav and .mobile-nav-content were deleted */

/* Blog Hero */
.blog-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url('https://images.unsplash.com/photo-1580587771525-78b9dba3b914?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1470&q=80') no-repeat center center/cover;
    color: var(--white);
    text-align: center;
    padding: 180px 20px 100px;
    position: relative;
}

.blog-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.blog-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Blog Container */
.blog-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    padding: 60px 0;
    position: relative;
}

/* Blog Main Content */
.blog-main {
    width: 100%;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* Blog Card */
.blog-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.blog-image-container {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.blog-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.blog-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-category {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 30px;
    margin-bottom: 15px;
    transition: var(--transition);
}

.blog-category:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

.blog-title {
    font-size: 1.4rem;
    margin: 0 0 15px;
    line-height: 1.4;
    color: var(--text-color);
}

.blog-excerpt {
    color: var(--dark-gray);
    margin-bottom: 20px;
    flex-grow: 1;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--medium-gray);
    font-size: 0.9rem;
}

.blog-date {
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-more {
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-more i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(3px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.page-numbers {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 5px;
}

.page-numbers li a,
.page-numbers li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--white);
    color: var(--text-color);
    font-weight: 600;
    transition: var(--transition);
}

.page-numbers li a:hover,
.page-numbers li span.current {
    background-color: var(--primary-color);
    color: var(--white);
}

.page-numbers li .dots {
    background: none;
    pointer-events: none;
}

.page-numbers li .next {
    background-color: var(--light-gray);
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--light-gray);
    position: relative;
    margin-top: 0;
}

.widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

/* Search Widget */
.search-form {
    position: relative;
}

.form-group {
    margin-bottom: 15px;
}

.form-input {
    width: 90%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 71, 42, 0.1);
}

.search-submit {
    position: absolute;
    right: 5px;
    top: 5px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.search-submit:hover {
    background-color: #e47835;
    transform: rotate(10deg);
}

/* Categories Widget */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--medium-gray);
}

.category-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-color);
    transition: var(--transition);
}

.category-list a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.count {
    background-color: var(--light-gray);
    color: var(--dark-gray);
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 10px;
    transition: var(--transition);
}

.category-list a:hover .count {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Popular Posts Widget */
.post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--medium-gray);
}

.post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.post-image {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    transition: var(--transition);
}

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

.post-content {
    flex: 1;
}

.post-title {
    font-size: 0.95rem;
    margin: 0 0 5px;
    line-height: 1.4;
}

.post-date {
    font-size: 0.8rem;
    color: var(--dark-gray);
}

/* Newsletter Widget */
.newsletter-widget p {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--dark-gray);
}


.btn-subscribe:hover {
    background-color: #e47835;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(26, 71, 42, 0.3);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .blog-container {
        grid-template-columns: 1fr 300px;
    }
    
    .blog-hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .blog-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .blog-sidebar {
        position: static;
        max-width: 600px;
        margin: 0 auto;
    }
    
}

@media (max-width: 768px) {
    /* .desktop-nav visibility now controlled from style_header,footer.css */
    .blog-hero {
        padding: 150px 20px 80px;
    }
    
    .blog-hero h1 {
        font-size: 2rem;
    }
    
    .blog-hero p {
        font-size: 1rem;
    }
    
    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
}

@media (max-width: 576px) {
    .blog-hero {
        padding: 130px 15px 60px;
    }
    
    .blog-hero h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .blog-container {
        padding: 40px 0;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .blog-content {
        padding: 20px;
    }
    
    .blog-title {
        font-size: 1.3rem;
    }
    
    .sidebar-widget {
        padding: 20px 15px;
    }
    
    .widget-title {
        font-size: 1.2rem;
    }
    
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

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

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 0.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-2 { margin-bottom: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }


.blog-hero .container {
    position: relative;
    z-index: 2;
}

.blog-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.blog-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

.blog-container {
    max-width: 1200px;
    margin: 3rem auto 2rem;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2.5rem;
}

.blog-main {
    grid-column: 1;
}

.blog-sidebar {
    grid-column: 2;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.blog-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.blog-image-container {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
}

.blog-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.blog-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-category {
    display: inline-block;
    background: var(--light-gray);
    color: var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.blog-category:hover {
    background: var(--primary-color);
    color: white;
}

.blog-title {
    font-size: 1.4rem;
    margin: 0.5rem 0 1rem;
    line-height: 1.4;
}

.blog-excerpt {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #777;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    margin-top: auto;
}

.blog-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--accent-color);
    gap: 0.5rem;
}

/* Sidebar Styles */
.sidebar-widget {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

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

.category-list li {
    margin-bottom: 0.8rem;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.category-list a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.category-list .count {
    background: var(--light-gray);
    color: #666;
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
}

.popular-posts .post-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.popular-posts .post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-posts .post-image {
    width: 80px;
    height: 60px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.popular-posts .post-title {
    font-size: 0.9rem;
    margin: 0 0 0.3rem;
    line-height: 1.4;
}

.popular-posts .post-date {
    font-size: 0.75rem;
    color: #777;
}

.newsletter-form {
    margin-top: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.btn-subscribe {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin: 3rem 0 2rem;
    gap: 0.5rem;
}

.page-numbers {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-numbers li {
    margin: 0;
}

.page-numbers a, 
.page-numbers span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: var(--transition);
}

.page-numbers a:hover,
.page-numbers .current {
    background: var(--primary-color);
    color: white;
}

.page-numbers .dots {
    pointer-events: none;
}

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

    .blog-sidebar {
        grid-column: 1;
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 4rem 0;
    }

    .blog-hero h1 {
        font-size: 2rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .popular-posts .post-item {
        flex-direction: column;
    }

    .popular-posts .post-image {
        width: 100%;
        height: 120px;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding: 3rem 0;
    }

    .blog-hero h1 {
        font-size: 1.75rem;
    }

    .blog-hero p {
        font-size: 1rem;
    }

    .page-numbers a, 
    .page-numbers span {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}



