/* ==========================================
   CONFIGURACIÓN GENERAL Y CUERPO
   ========================================== */
body {
    background-color: #F4F7F9;
}

/* Evitar sombra en H1 según requerimiento */
h1 {
    text-shadow: none !important;
    font-size: 2.5rem !important;
    /* Ajuste más editorial */
}

/* Categoría con los colores de tu marca */
.badge-categoria {
    background-color: var(--colorVerde);
    color: var(--colorAmarillo);
    padding: 6px 12px;
    font-family: "Montserrat", sans-serif;
    font-weight: bold;
    letter-spacing: 1px;
}

/* ==========================================
   VISTA DE LISTADO (GRILLA DE NOVEDADES)
   ========================================== */

/* La tarjeta completa de la grilla */
.card-novedad-grid {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    /* Asegura que todas las tarjetas de la fila midan lo mismo */
    border: none;
    background-color: #fff;
}

.card-novedad-grid:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Contenedor que limita el tamaño de la imagen */
.img-grid-container {
    width: 100%;
    height: 220px;
    /* Altura fija para uniformidad */
    overflow: hidden;
    position: relative;
    border-top-left-radius: 0.3rem;
    border-top-right-radius: 0.3rem;
}

.img-grid-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Recorta la imagen para llenar el hueco sin deformar */
    object-position: center;
    transition: transform 0.5s ease;
}

.card-novedad-grid:hover .img-grid-container img {
    transform: scale(1.05);
    /* Efecto de zoom suave al pasar el mouse */
}

/* Limitar el texto del resumen a 3 líneas */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================
   VISTA DE ARTÍCULO (LECTURA)
   ========================================== */

/* Imágenes destacadas en el artículo completo */
.featured-image-container img {
    transition: transform 0.5s ease;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* --- TIPOGRAFÍA  --- */
.article-content h1 {
    color: #212529;
    font-size: 2.5rem;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 500;
    text-shadow: none;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.article-content h2 {
    color: #212529;
    font-size: 2rem;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 500;
    text-shadow: none;
    margin-bottom: 0.5rem;
}

.article-content h3 {
    color: #212529;
    font-size: 1.75rem;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 500;
    text-shadow: none;
    margin-bottom: 0.5rem;
}

.article-content p {
    color: #212529;
    font-size: 1rem;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 400;
    line-height: 1.5;
    margin-top: 0;
    margin-bottom: 1rem;
}

.article-content label {
    color: #212529;
    font-size: 1rem;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    display: inline-block;
}


.article-content img{
    max-width: 100%;
}

.article-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.article-content blockquote {
    border-left: 5px solid var(--colorAmarillo);
    background-color: #fefce8;
    padding: 20px 30px !important;
    font-style: italic;
    color: var(--colorAzul);
    font-size: 1.2rem;
    border-radius: 0 8px 8px 0;
}

/* Sidebar Sticky */
.sticky-top-novedades {
    position: sticky;
    top: 100px;
}

/* Mini posts del lateral */
.mini-img {
    width: 60px;
    height: 60px;
    overflow: hidden;
    background-color: #ddd;
    border-radius: 8px;
    flex-shrink: 0;
}

.mini-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.ultra-small {
    font-size: 0.75rem;
}



/* ==========================================
   AJUSTES RESPONSIVOS
   ========================================== */
@media (max-width: 768px) {
    .article-content {
        font-size: 1rem;
    }

    .img-grid-container {
        height: 200px;
        /* Un poco más pequeña en móviles */
    }
}