.elementor-818 .elementor-element.elementor-element-06838d8{--display:flex;}/* Start custom CSS for wp-widget-newses_latest_post, class: .elementor-element-088d432 */ /* --- CSS Completo para Grilla de Noticias (Tema Newses) --- */

/* 1. CONTENEDOR PRINCIPAL DE LA GRILLA */
.mg-posts-sec-inner.row {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 30px !important;
  
  /* Centrado de la grilla */
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* 2. LA TARJETA DE NOTICIA COMPLETA */
.mg-posts-sec-post {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  overflow: hidden;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

/* 3. IMAGEN DESTACADA (CUADRADA) */
.mg-blog-thumb {
  width: 100%;
  aspect-ratio: 1 / 1; /* Fuerza la imagen a ser cuadrada */
  object-fit: cover;   /* Evita que la imagen se deforme */
  background-size: cover;
  background-position: center;
  display: block;
}

/* 4. CONTENIDO DE LA TARJETA (TEXTO) */
.mg-sec-top-post {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* 5. TÍTULO DE LA NOTICIA */
h4.title a {
  font-size: 1.25rem;
  color: #333;
  text-decoration: none;
  font-weight: bold;
}

/* 6. EXTRACTO O RESUMEN CON LÍMITE */
/* Selector adaptado: '.mg-content.overflow-hidden p' */
.mg-content.overflow-hidden p {
  height: 60px; /* Altura aproximada para 3 líneas de texto */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Límite de 3 líneas */
  -webkit-box-orient: vertical;
  margin-bottom: 15px;
}


/* --- RESPONSIVIDAD --- */
@media (max-width: 992px) {
  .mg-posts-sec-inner.row {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 768px) {
  .mg-posts-sec-inner.row {
    grid-template-columns: 1fr !important;
  }
} /* End custom CSS */