.elementor-5040 .elementor-element.elementor-element-6995da2{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}/* Start custom CSS for html, class: .elementor-element-6f547e2 */.convenios {
  padding: 50px 20px;
  background: #f8f9fb;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.convenios h2 {
  text-align: center;
  margin-bottom: 10px;
  font-size: 28px;
}

.convenios .intro {
  text-align: center;
  margin-bottom: 30px;
  color: #555;
}

/* GRID */
.grid-convenios {
  display: grid;
grid-template-columns: repeat(3, 1fr);  gap: 25px;
}

/* CARD */
.card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  transition: all 0.25s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* IMAGE */
.img-wrapper {
  position: relative;
}

.card img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}

.card:hover img {
  transform: scale(1.05);
}

/* OVERLAY */
.overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  text-align: center;
  padding: 10px;
  opacity: 0;
  transition: 0.3s;
  font-size: 14px;
}

.card:hover .overlay {
  opacity: 1;
}/* End custom CSS */