.ultimas-noticias-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.noticia-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    align-items: flex-start;
}

.noticia-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.noticia-thumbnail {
    width: 80px;
    flex-shrink: 0;
    margin-right: 15px;
}

/* Estilos para imágenes - Evitar borrosidad */
.noticia-thumbnail img {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    display: block;
    object-fit: cover; /* Mantiene proporciones sin distorsión */
    image-rendering: -webkit-optimize-contrast; /* Mejora calidad en WebKit */
    image-rendering: crisp-edges; /* Mejora bordes */
    image-rendering: pixelated; /* Para imágenes pequeñas */
    -ms-interpolation-mode: nearest-neighbor; /* Para IE */
}

.noticia-content {
    flex: 1;
    min-width: 200px;
}

.noticia-title {
    margin: 0 0 5px 0;
    line-height: 1.3;
    font-size: 1em;
}

.noticia-title a {
    text-decoration: none;
    color: #f0387e; /* Fuscia*/
    font-weight: bold;
    transition: color 0.3s;
}

.noticia-title a:hover {
    color: #3bbcd0; /* Celeste oscuro al pasar mouse */
    text-decoration: underline;
}

.noticia-date {
    font-size: 0.85em;
    color: #555; /* Plomo oscuro */
    margin: 0;
}

/* Diseño responsive mejorado - Evita imágenes borrosas */
@media (max-width: 768px) {
    .noticia-item {
        flex-direction: column;
        align-items: stretch;
    }
    
    .noticia-thumbnail {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
        text-align: center; /* Centra la imagen */
    }
    
    /* Imágenes más grandes en móviles para evitar pixeleo */
    .noticia-thumbnail img {
        width: 100%;
        height: auto;
        max-width: 100%;
        max-height: 200px;
        object-fit: contain; /* Muestra imagen completa sin recortar */
        margin: 0 auto; /* Centra horizontalmente */
        image-rendering: auto; /* Deja que el navegador decida */
    }
    
    .noticia-content {
        width: 100%;
    }
}

/* Para widgets en sidebars muy estrechos */
@media (max-width: 480px) {
    .noticia-item {
        display: flex;
        flex-direction: column;
    }
    
    .noticia-thumbnail {
        width: 100%;
        margin: 0 0 10px 0;
    }
    
    .noticia-thumbnail img {
        width: 100%;
        height: auto;
        min-height: 150px;
        max-height: 180px;
        object-fit: cover;
    }
}

/* Para widgets extremadamente estrechos (menos de 300px) */
@media (max-width: 300px) {
    .noticia-thumbnail img {
        max-height: 120px;
        object-fit: contain; /* Mejor que cover para evitar distorsión */
    }
    
    .noticia-title {
        font-size: 0.9em;
        line-height: 1.2;
    }
    
    .noticia-date {
        font-size: 0.8em;
    }
}

/* Ajustes específicos para mejorar calidad de imagen */
.noticia-thumbnail a {
    display: inline-block;
    width: 100%;
    overflow: hidden;
    border-radius: 4px;
}

/* Mejora para pantallas retina/high-dpi */
@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) {
    .noticia-thumbnail img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Prevenir escalado agresivo del navegador */
.noticia-thumbnail img {
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    transform: translateZ(0);
}