/* ===================================
   BLOG PAGE STYLES
   =================================== */

/* ===================================
   HERO BLOG
   =================================== */
.blog-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(201, 167, 124, 0.08) 0%, rgba(124, 154, 146, 0.08) 100%);
    position: relative;
    padding: 8rem 2rem 6rem;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(201, 167, 124, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(124, 154, 146, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.blog-hero .hero-content {
    text-align: center;
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.blog-hero .hero-subtitle {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #C9A77C;
    margin-bottom: 1.5rem;
}

.blog-hero .hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.blog-hero .hero-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.125rem;
    color: #666;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

/* ===================================
   BLOG FILTERS
   =================================== */
.blog-filters {
    background: #fff;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(201, 167, 124, 0.2);
    position: sticky;
    top: 80px;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filters-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Search Box */
.search-box {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid rgba(201, 167, 124, 0.2);
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.938rem;
    color: #1a1a2e;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #C9A77C;
    box-shadow: 0 0 0 4px rgba(201, 167, 124, 0.1);
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #C9A77C;
    pointer-events: none;
}

/* Category Filters */
.category-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-btn {
    padding: 0.75rem 2rem;
    border: 2px solid rgba(201, 167, 124, 0.3);
    background: transparent;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a1a2e;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.filter-btn:hover {
    border-color: #1a1a2e;
    color: #1a1a2e;
    transform: translateY(-2px);
}

/* Todos = oscuro */
.filter-btn.active {
    background: linear-gradient(135deg, #1a1a2e 0%, #2c3e50 100%);
    border-color: #1a1a2e;
    color: #fff;
    box-shadow: 0 5px 20px rgba(26, 26, 46, 0.3);
}

.filter-btn[data-category="all"]:hover {
    border-color: #1a1a2e;
    color: #1a1a2e;
}

/* Empresas = dorado */
.filter-btn[data-category="empresas"].active {
    background: linear-gradient(135deg, #C9A77C 0%, #d4b890 100%);
    border-color: #C9A77C;
    color: #fff;
    box-shadow: 0 5px 20px rgba(201, 167, 124, 0.3);
}

.filter-btn[data-category="empresas"]:hover {
    border-color: #C9A77C;
    color: #C9A77C;
}

/* Negocios = azul-gris */
.filter-btn[data-category="negocios"].active {
    background: linear-gradient(135deg, #7C8FA0 0%, #9aaebb 100%);
    border-color: #7C8FA0;
    color: #fff;
    box-shadow: 0 5px 20px rgba(124, 143, 160, 0.3);
}

.filter-btn[data-category="negocios"]:hover {
    border-color: #7C8FA0;
    color: #7C8FA0;
}

/* Clínicas | Farmacias = verde */
.filter-btn[data-category="clinicas"].active {
    background: linear-gradient(135deg, #7C9A92 0%, #8faaa3 100%);
    border-color: #7C9A92;
    color: #fff;
    box-shadow: 0 5px 20px rgba(124, 154, 146, 0.3);
}

.filter-btn[data-category="clinicas"]:hover {
    border-color: #7C9A92;
    color: #7C9A92;
}

/* Tendencias y Casos = dorado suave (genérico) */
.filter-btn[data-category="tendencias"].active,
.filter-btn[data-category="casos"].active {
    background: linear-gradient(135deg, #C9A77C 0%, #d4b890 100%);
    border-color: #C9A77C;
    color: #fff;
    box-shadow: 0 5px 20px rgba(201, 167, 124, 0.3);
}

.filter-btn[data-category="tendencias"]:hover,
.filter-btn[data-category="casos"]:hover {
    border-color: #C9A77C;
    color: #C9A77C;
}

/* ===================================
   BLOG CONTENT LAYOUT
   =================================== */
.blog-content {
    padding: 4rem 0;
    background: #fafafa;
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
}

/* ===================================
   BLOG GRID
   =================================== */
.blog-main {
    min-height: 600px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

/* Blog Card */
.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: translateY(0);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.blog-card:has(.card-category.empresas):hover {
    box-shadow: 0 12px 40px rgba(201, 167, 124, 0.2);
    border-color: rgba(201, 167, 124, 0.35);
}

.blog-card:has(.card-category.negocios):hover {
    box-shadow: 0 12px 40px rgba(124, 143, 160, 0.2);
    border-color: rgba(124, 154, 146, 0.35);
}

.blog-card.hidden {
    display: none;
}

/* Card Image */
.card-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.card-image svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.card-category.empresas {
    color: #C9A77C;
}

.card-category.negocios {
    color: #7C8FA0;
}

.card-category.tendencias {
    color: #1a1a2e;
}

.card-category.casos {
    color: #C9A77C;
}

/* Card Content */
.card-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-date {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.813rem;
    color: #999;
    margin-bottom: 0.75rem;
}

.card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.375rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.4;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.blog-card:hover .card-title {
    color: #C9A77C;
}

.card-excerpt {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.938rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #C9A77C;
    text-decoration: none;
    transition: all 0.3s ease;
}

.card-link svg {
    transition: transform 0.3s ease;
}

.card-link:hover {
    gap: 0.75rem;
}

.card-link:hover svg {
    transform: translateX(4px);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.no-results svg {
    color: rgba(201, 167, 124, 0.3);
    margin-bottom: 1.5rem;
}

.no-results h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem;
    color: #1a1a2e;
    margin-bottom: 0.75rem;
}

.no-results p {
    font-family: 'Montserrat', sans-serif;
    color: #666;
    font-size: 1rem;
}

/* ===================================
   PAGINATION
   =================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid rgba(201, 167, 124, 0.3);
    background: #fff;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a1a2e;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #C9A77C;
    color: #C9A77C;
    transform: translateY(-2px);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
}

.pagination-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(201, 167, 124, 0.3);
    background: #fff;
    border-radius: 50%;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a1a2e;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-number:hover {
    border-color: #C9A77C;
    color: #C9A77C;
}

.pagination-number.active {
    background: #C9A77C;
    border-color: #C9A77C;
    color: #fff;
}

/* ===================================
   SIDEBAR
   =================================== */
.blog-sidebar {
    position: sticky;
    top: 160px;
    height: fit-content;
}

.sidebar-widget {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.widget-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(201, 167, 124, 0.2);
}

/* Featured Posts */
.featured-posts {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.featured-post {
    display: flex;
    gap: 1rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.featured-post:hover {
    transform: translateX(4px);
}

.featured-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.featured-image svg {
    width: 100%;
    height: 100%;
}

.featured-content h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.938rem;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.featured-post:hover .featured-content h4 {
    color: #C9A77C;
}

.featured-date {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    color: #999;
}

/* Categories List */
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li {
    border-bottom: 1px solid rgba(201, 167, 124, 0.1);
}

.categories-list li:last-child {
    border-bottom: none;
}

.categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.938rem;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.categories-list a:hover {
    color: #C9A77C;
    padding-left: 0.5rem;
}

.category-count {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 0.5rem;
    background: rgba(201, 167, 124, 0.1);
    border-radius: 50px;
    font-size: 0.813rem;
    font-weight: 600;
    color: #C9A77C;
}

/* Newsletter Widget */
.newsletter-widget {
    background: linear-gradient(135deg, rgba(201, 167, 124, 0.08) 0%, rgba(124, 154, 146, 0.08) 100%);
}

.newsletter-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.938rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.newsletter-form input {
    padding: 0.875rem 1rem;
    border: 2px solid rgba(201, 167, 124, 0.2);
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.938rem;
    color: #1a1a2e;
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #C9A77C;
    box-shadow: 0 0 0 4px rgba(201, 167, 124, 0.1);
}

.newsletter-btn {
    padding: 0.875rem 1.5rem;
    background: #C9A77C;
    border: none;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.938rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background: #b8965f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 167, 124, 0.3);
}

/* CTA Widget */
.cta-widget {
    background: linear-gradient(135deg, #1a1a2e 0%, #2a2a3e 100%);
    text-align: center;
}

.cta-widget .widget-title {
    color: #fff;
    border-bottom-color: rgba(201, 167, 124, 0.3);
}

.cta-widget p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.938rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.widget-cta-btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: #C9A77C;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.938rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.widget-cta-btn:hover {
    background: #b8965f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 167, 124, 0.4);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Tablets */
@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
        margin-top: 3rem;
    }

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

/* Mobile */
@media (max-width: 768px) {
    .blog-hero {
        padding: 6rem 1.5rem 4rem;
        min-height: 40vh;
    }

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

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

    .blog-filters {
        top: 70px;
        padding: 1.5rem 0;
    }

    .filters-wrapper {
        gap: 1rem;
    }

    .search-box {
        max-width: 100%;
    }

    .category-filters {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.813rem;
    }

    .blog-content {
        padding: 2rem 0;
    }

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

    .card-image {
        height: 200px;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .pagination-btn {
        padding: 0.625rem 1rem;
        font-size: 0.813rem;
    }

    .pagination-number {
        width: 36px;
        height: 36px;
        font-size: 0.813rem;
    }

    .sidebar-widget {
        padding: 1.5rem;
    }

    .widget-title {
        font-size: 1.25rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .blog-hero .hero-title {
        font-size: 1.75rem;
    }

    .category-filters {
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
    }

    .pagination-numbers {
        display: none;
    }
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-card {
    animation: fadeInUp 0.6s ease forwards;
}

.blog-card:nth-child(1) { animation-delay: 0.1s; }
.blog-card:nth-child(2) { animation-delay: 0.2s; }
.blog-card:nth-child(3) { animation-delay: 0.3s; }
.blog-card:nth-child(4) { animation-delay: 0.4s; }
.blog-card:nth-child(5) { animation-delay: 0.5s; }
.blog-card:nth-child(6) { animation-delay: 0.6s; }

