/**
 * Estilos de Blog & Artículos — 360 Vision HSE
 */

.v360-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.v360-blog-card,
.v360-blog-card-premium {
    background: #ffffff;
    border-radius: var(--v360-border-radius-md);
    border: 1px solid var(--v360-border-light);
    padding: 2.25rem 2rem;
    overflow: hidden;
    transition: transform var(--v360-transition-base), box-shadow var(--v360-transition-base), border-color var(--v360-transition-base);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 16px rgba(0, 85, 163, 0.05);
    position: relative;
}

.v360-blog-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3.5px;
    background: linear-gradient(90deg, #0055A3, #06b6d4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.v360-blog-card:hover,
.v360-blog-card-premium:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 85, 163, 0.12);
    border-color: rgba(0, 85, 163, 0.35);
}

.v360-blog-card-premium:hover::before {
    opacity: 1;
}

.v360-blog-card-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.v360-blog-date {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 500;
}

.v360-blog-date svg {
    color: var(--v360-color-blue);
    opacity: 0.75;
}

.v360-blog-cat-badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.75rem;
    border-radius: var(--v360-border-radius-full);
    background: rgba(0, 85, 163, 0.08);
    color: var(--v360-color-blue);
    border: 1px solid rgba(0, 85, 163, 0.2);
}

.v360-blog-cat-badge.green {
    background: rgba(16, 185, 129, 0.08);
    color: #059669;
    border-color: rgba(16, 185, 129, 0.25);
}

.v360-blog-cat-badge.orange {
    background: rgba(245, 158, 11, 0.08);
    color: #d97706;
    border-color: rgba(245, 158, 11, 0.25);
}

.v360-blog-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.v360-blog-card-title,
.v360-blog-title {
    font-family: var(--v360-font-title);
    font-size: 1.22rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 1rem;
}

.v360-blog-card-title a,
.v360-blog-title a {
    color: var(--v360-color-blue);
    text-decoration: none;
    transition: color var(--v360-transition-fast);
}

.v360-blog-card-title a:hover,
.v360-blog-title a:hover {
    color: var(--v360-color-blue-hover);
}

.v360-blog-card-excerpt,
.v360-blog-excerpt {
    font-size: 0.92rem;
    color: var(--v360-text-light-muted);
    line-height: 1.65;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.v360-blog-card-foot {
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid #f1f5f9;
}

.v360-blog-read-link,
.v360-blog-readmore {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--v360-font-title);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--v360-color-blue);
    text-decoration: none;
    transition: all var(--v360-transition-fast);
}

.v360-blog-read-link:hover,
.v360-blog-readmore:hover {
    color: var(--v360-color-blue-hover);
    gap: 0.75rem;
}


/* Post Individual */
.v360-single-post {
    padding: clamp(3rem, 5vw, 5rem) 0;
}

.v360-single-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: var(--v360-text-base);
    line-height: 1.8;
    color: var(--v360-text-main);
}

.v360-single-content h2,
.v360-single-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.v360-single-content p {
    margin-bottom: 1.25rem;
}

@media (max-width: 991px) {
    .v360-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .v360-blog-grid {
        grid-template-columns: 1fr;
    }
}
