.tarjeta--educacion {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  background-color: #ffffff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 1.5rem 0;
  max-width: 900px;
  margin-inline: auto;
}

.tarjeta--educacion:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

.contenedor__img {
  width: 40%;
  min-height: 200px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.contenedor--info {
  width: 60%;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #1a1a1a;
  font-family: "Segoe UI", sans-serif;
  line-height: 1.6;
}

.contenedor--info h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #113b8a;
}

.contenedor--info p {
  font-size: 1rem;
  color: #333;
}

/**/
.contenedor__img {
  position: relative;
  overflow: hidden;
}

.overlay-link {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(17, 59, 138, 0.9);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.contenedor__img:hover .overlay-link {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(-5px);
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .tarjeta--educacion {
    flex-direction: column;
  }

  .contenedor__img,
  .contenedor--info {
    width: 100%;
  }

  .contenedor__img {
    height: 200px;
  }
}
