/* ========================================
   BLOG STYLES - OpenBox Informática Chile
   ======================================== */

/* Blog Hero */
.blog-hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 120px 0 30px;
    text-align: center;
    color: white;
    border-bottom: 1px solid #334155;
}

.blog-hero__title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.blog-hero__subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
    color: #cbd5e1;
}

/* Blog Posts Grid */
.blog-posts {
    padding: 30px 0 80px;
    background: #0f172a;
}

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

/* Blog Card */
.blog-card {
    background: #1e293b;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid transparent;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3), 0 0 40px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #1e293b 0%, #1e3a5f 100%);
}

.blog-card--coming-soon {
    opacity: 0.6;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 2px dashed #334155;
}

.blog-card__badge {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-critical {
    background: #ff6b6b;
    color: white;
}

.badge-devops {
    background: #4ecdc4;
    color: white;
}

.badge-upcoming {
    background: #64748b;
    color: white;
}

.blog-card__date {
    font-size: 0.875rem;
    color: #94a3b8;
    margin-bottom: 1rem;
    font-weight: 500;
}

.blog-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: #e2e8f0;
}

.blog-card__title a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card__title a:hover {
    color: #667eea;
}

.blog-card__excerpt {
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.blog-card__meta {
    margin-top: auto;
}

.blog-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    row-gap: 0.75rem;
    margin-bottom: 1rem;
}

.tag {
    background: #334155;
    color: #e2e8f0;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    display: inline-block;
}

.blog-card__stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.blog-card__link {
    display: inline-flex;
    align-items: center;
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.blog-card__link:hover {
    color: #764ba2;
    gap: 0.5rem;
}

/* Blog CTA */
.blog-cta {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 80px 0;
    text-align: center;
    color: white;
    border-top: 1px solid #334155;
}

.blog-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #e2e8f0;
}

.blog-cta p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    color: #cbd5e1;
}

.blog-cta .btn-primary {
    background: #25D366;
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: all 0.3s ease;
}

.blog-cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
    background: #20BA5A;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #20BA5A;
    transform: scale(1.1);
    box-shadow: 2px 2px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: white;
}

/* Hamburger Animation */
.hamburger {
    position: relative;
}

.hamburger span {
    transition: all 0.3s linear;
    position: relative;
}

.hamburger.active span {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.hamburger.active span:nth-child(1) {
    transform: translateX(-50%) rotate(45deg);
    top: 50%;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateX(-50%) rotate(-45deg);
    top: 50%;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-hero__title {
        font-size: 2.5rem;
    }

    .blog-hero__subtitle {
        font-size: 1rem;
    }

    .blog-hero {
        padding: 100px 0 20px;
    }

    .blog-posts {
        padding: 20px 0 60px;
    }

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

    .blog-cta h2 {
        font-size: 1.75rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}
