/* Start custom CSS for shortcode, class: .elementor-element-8015848 *//* --- Contenedor principal sin margenes --- */
.wmis_main_container {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0; /* sin espacio entre imágenes */
}

/* Cada artículo del grid */
.wmis_articles {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
  width: 33.333%; /* 3 columnas por fila */
}

/* Imagen principal */
.wmis_articles img.wmis_featured_image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
  border-radius: 0 !important;
}

/* Overlay con degradado: solo visible al hover */
.wmis_articles::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
  opacity: 0; /* invisible por defecto */
  transition: opacity 0.3s ease;
  z-index: 1;
}

/* Contenedor del texto */
.wmis_content_container {
  position: absolute;
  width: 90%;
  color: white;
  text-align: left; /* titulo abajo por defecto */
  bottom: 10px;
  left: 10px;
  z-index: 2;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
  transition: all 0.3s ease;
}

/* Título */
.wmis_title_link {
  color: #fff !important;
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.wmis_title_link:hover {
  color: #ffd700; /* opcional: dorado al hover */
}

/* Hover: imagen zoom */
.wmis_articles:hover img.wmis_featured_image {
  transform: scale(1.05);
}

/* Hover: overlay visible */
.wmis_articles:hover::before {
  opacity: 1;
}

/* Hover: título centrado */
.wmis_articles:hover .wmis_content_container {
  top: 50%;
  left: 50%;
  bottom: auto;
  transform: translate(-50%, -50%);
  text-align: center;
}

/* Ocultar elementos innecesarios */
.wmis_excerpt,
.wmis_date,
.wmis_readmore {
  display: none !important;
}

/* Responsivo */
@media screen and (max-width: 768px) {
  .wmis_title_link {
    font-size: 20px;
  }

  .wmis_articles {
    width: 100%; /* una columna en móvil */
  }
}/* End custom CSS */