/* =======================================================
   ESTILOS PÚBLICOS PARA LA SECCIÓN DE BLOGS Y DETALLES
   ======================================================= */

/* Chips de Filtrado */
.filtro-chip {
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filtro-chip:hover {
    background-color: #e2e8f0;
    color: #0f172a;
}

.filtro-chip.active {
    background-color: #003b70; /* Azul corporativo */
    color: #ffffff;
    border-color: #003b70;
    box-shadow: 0 4px 10px rgba(0, 59, 112, 0.25);
}

/* Tarjetas de Blogs */
.blog-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px -3px rgba(0, 0, 0, 0.1);
}

.blog-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.blog-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-content h5 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.blog-content p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 20px;
}

/* Botón Leer Más */
.btn-blog {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #003b70;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    transition: gap 0.2s ease;
}

.btn-blog:hover {
    color: #d31224; /* Rojo INTRA */
    gap: 12px;
}

/* Estilos para la vista de Detalle */
.autor-card {
    background: #ffffff;
    border-radius: 12px;
    transition: transform 0.2s ease;
}

.autor-card:hover {
    transform: translateY(-2px);
}

/* --- AJUSTES DE TIPOGRAFÍA Y DISEÑO PARA DETALLE --- */

/* Título principal en negrita imponente */
.blog-titulo-detalle {
    font-weight: 800 !important;
    color: var(--azul-intra, #003366);
}

/* Cuerpo del artículo justificado, con aire y legibilidad superior */
.blog-contenido-texto {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #334155;
    text-align: justify;
}

/* Subtítulos dentro del contenido en negrita */
.blog-contenido-texto h2,
.blog-contenido-texto h3,
.blog-contenido-texto h4 {
    font-weight: 700 !important;
    color: var(--azul-intra, #003366);
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-align: left;
}

/* Párrafos espaciados y con alineación justificada */
.blog-contenido-texto p,
.blog-text p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* =======================================================
   ESTILOS PARA TÍTULOS AUTODETECTADOS EN EL BLOG
   ======================================================= */

.blog-contenido-texto {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #334155;
    text-align: justify;
}

/* Estilo imponente en negrita para los títulos generados */
.blog-contenido-texto .blog-subtitulo-automatico {
    font-weight: 700 !important;
    color: var(--azul-intra, #003366);
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    text-align: left;
}

/* Espaciado y justificación de los párrafos del blog */
.blog-contenido-texto p {
    margin-bottom: 1.5rem;
    text-align: justify;
}